diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-10-08 08:50:04 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-10-08 08:50:04 +0000 |
commit | 7a9e5ffc0b4a65a520da27164e1ee7c194b32cdd (patch) | |
tree | 52b866c552ee11a3c37a6b2b21cfc69228917f6a | |
parent | bbd6688e1e7bca3f97ddc8c1b8d513b5ca5e9b29 (diff) | |
download | wireshark-7a9e5ffc0b4a65a520da27164e1ee7c194b32cdd.tar.gz wireshark-7a9e5ffc0b4a65a520da27164e1ee7c194b32cdd.tar.bz2 wireshark-7a9e5ffc0b4a65a520da27164e1ee7c194b32cdd.zip |
Include <string.h> to declare "memcpy()".
Cast the argument to "ip_to_str()" to eliminate a compiler warning.
svn path=/trunk/; revision=6376
-rw-r--r-- | packet-netflow.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-netflow.c b/packet-netflow.c index 89a9ca3662..e6c885baa1 100644 --- a/packet-netflow.c +++ b/packet-netflow.c @@ -34,7 +34,7 @@ ** are dissected as vendor specific fields. ** ** $Yahoo: //depot/fumerola/packet-netflow/packet-netflow.c#14 $ - ** $Id: packet-netflow.c,v 1.5 2002/09/22 16:13:21 gerald Exp $ + ** $Id: packet-netflow.c,v 1.6 2002/10/08 08:50:04 guy Exp $ */ #ifdef HAVE_CONFIG_H @@ -43,6 +43,7 @@ #include <glib.h> #include <epan/packet.h> +#include <string.h> #define UDP_PORT_NETFLOW 2055 @@ -798,7 +799,7 @@ getprefix(const guint32 * address, int prefix) gprefix = *address & htonl((0xffffffff << (32 - prefix))); - return (ip_to_str(&gprefix)); + return (ip_to_str((const guint8 *)&gprefix)); } void |