From: Francois-Xavier Le Bail Date: Sat, 22 May 2021 07:41:31 +0000 (+0200) Subject: Zephyr: Update 'length' type to unsigned X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/29973d83e8cecbb3bc940af216f6bef2376f39c5 Zephyr: Update 'length' type to unsigned It is unsigned in the calling function udp_print(). --- diff --git a/netdissect.h b/netdissect.h index 6f38fa6c..4f66798f 100644 --- a/netdissect.h +++ b/netdissect.h @@ -731,7 +731,7 @@ extern void vxlan_gpe_print(netdissect_options *, const u_char *, u_int); extern void vxlan_print(netdissect_options *, const u_char *, u_int); extern void wb_print(netdissect_options *, const u_char *, u_int); extern void zep_print(netdissect_options *, const u_char *, u_int); -extern void zephyr_print(netdissect_options *, const u_char *, int); +extern void zephyr_print(netdissect_options *, const u_char *, u_int); extern void zmtp1_print(netdissect_options *, const u_char *, u_int); extern void zmtp1_datagram_print(netdissect_options *, const u_char *, const u_int); extern void someip_print(netdissect_options *, const u_char *, const u_int); diff --git a/print-zephyr.c b/print-zephyr.c index 7f60f1fd..aa552aaa 100644 --- a/print-zephyr.c +++ b/print-zephyr.c @@ -140,7 +140,7 @@ str_to_lower(const char *string) } void -zephyr_print(netdissect_options *ndo, const u_char *cp, int length) +zephyr_print(netdissect_options *ndo, const u_char *cp, u_int length) { struct z_packet z = { NULL, /* version */