]> The Tcpdump Group git mirrors - tcpdump/commitdiff
need stdlib.h for malloc(3). strict prototype
authoritojun <itojun>
Wed, 23 Jan 2002 05:23:16 +0000 (05:23 +0000)
committeritojun <itojun>
Wed, 23 Jan 2002 05:23:16 +0000 (05:23 +0000)
print-esp.c

index 6e76f1b26bac795e7daf98c5d72a6494d45365c3..08234974148bce0fc6de9a08de39cfc976f79e10 100644 (file)
@@ -23,7 +23,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-esp.c,v 1.20 2002-01-21 11:39:59 mcr Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-esp.c,v 1.21 2002-01-23 05:23:16 itojun Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -35,6 +35,7 @@ static const char rcsid[] =
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <stdlib.h>
 
 #include <netinet/in.h>
 
@@ -119,7 +120,7 @@ static int hex2byte(char *hexstring)
 }
 
 
-void esp_print_decodesecret()
+static void esp_print_decodesecret(void)
 {
        char *colon;
        int   len, i;