From 29973d83e8cecbb3bc940af216f6bef2376f39c5 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Sat, 22 May 2021 09:41:31 +0200 Subject: [PATCH] Zephyr: Update 'length' type to unsigned It is unsigned in the calling function udp_print(). --- netdissect.h | 2 +- print-zephyr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 */