]> The Tcpdump Group git mirrors - tcpdump/commitdiff
ZMTP: fix an MSVC compiler warning
authorGisle Vanem <[email protected]>
Wed, 5 Mar 2014 09:19:24 +0000 (13:19 +0400)
committerDenis Ovsienko <[email protected]>
Wed, 5 Mar 2014 09:25:30 +0000 (13:25 +0400)
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.

interface.h

index ffb25a6287df104a138bcf9048a2fad22d1064f6..40d7291b413e769ce31ba49710cd2ed96f5c9e1e 100644 (file)
@@ -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);