summaryrefslogtreecommitdiffstats
path: root/print-usb.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:52:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:52:32 +0000
commit19d738d1692ee8b11eb2de0f9995732b32cf6bac (patch)
tree35501236837919acfbf69e867f25e6830ee9301d /print-usb.c
parentAdding debian version 4.99.4-4. (diff)
downloadtcpdump-19d738d1692ee8b11eb2de0f9995732b32cf6bac.tar.xz
tcpdump-19d738d1692ee8b11eb2de0f9995732b32cf6bac.zip
Merging upstream version 4.99.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'print-usb.c')
-rw-r--r--print-usb.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/print-usb.c b/print-usb.c
index 3f5937b..98bd91b 100644
--- a/print-usb.c
+++ b/print-usb.c
@@ -21,9 +21,7 @@
/* \summary: USB printer */
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include "netdissect-stdinc.h"
@@ -148,8 +146,7 @@ get_direction(int transfer_type, int event_type)
case URB_BULK:
case URB_CONTROL:
case URB_ISOCHRONOUS:
- switch(event_type)
- {
+ switch(event_type) {
case URB_SUBMIT:
direction = 2;
break;
@@ -162,8 +159,7 @@ get_direction(int transfer_type, int event_type)
}
break;
case URB_INTERRUPT:
- switch(event_type)
- {
+ switch(event_type) {
case URB_SUBMIT:
direction = 1;
break;
@@ -196,8 +192,7 @@ usb_header_print(netdissect_options *ndo, const pcap_usb_header *uh)
ND_PRINT(" ");
transfer_type = GET_U_1(uh->transfer_type);
- switch(transfer_type)
- {
+ switch(transfer_type) {
case URB_ISOCHRONOUS:
ND_PRINT("ISOCHRONOUS");
break;
@@ -215,8 +210,7 @@ usb_header_print(netdissect_options *ndo, const pcap_usb_header *uh)
}
event_type = GET_U_1(uh->event_type);
- switch(event_type)
- {
+ switch(event_type) {
case URB_SUBMIT:
ND_PRINT(" SUBMIT");
break;