From: Gisle Vanem Date: Wed, 5 Mar 2014 09:19:24 +0000 (+0400) Subject: ZMTP: fix an MSVC compiler warning X-Git-Tag: tcpdump-4.6.0~197 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/80c41bbe3d90b4e1c0d2f1999206f29c2bfcf6d3 ZMTP: fix an MSVC compiler warning The prototype and implementation of 'zmtp1_print_datagram()' is slightly different; the prototype has a 'const u_int len' as the last parameter. Whereas the implementation has no 'const'. Hence I get a warning from MSVC. --- diff --git a/interface.h b/interface.h index ffb25a62..40d7291b 100644 --- a/interface.h +++ b/interface.h @@ -320,7 +320,7 @@ extern void mpls_print(const u_char *, u_int); extern void mpls_lsp_ping_print(const u_char *, u_int); extern void zephyr_print(const u_char *, int); extern void zmtp1_print(const u_char *, u_int); -extern void zmtp1_print_datagram(const u_char *, u_int); +extern void zmtp1_print_datagram(const u_char *, const u_int); extern void bfd_print(const u_char *, u_int, u_int); extern void sip_print(const u_char *, u_int); extern void syslog_print(const u_char *, u_int);