diff options
author | Joerg Mayer <jmayer@loplof.de> | 2018-03-28 15:35:45 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-03-28 15:35:45 -0700 |
commit | 54426cb44d4f5494153f10792af4f12310c8a157 (patch) | |
tree | 7c8d2fd7704d882b68544844268c091cb71c97a5 /sockutils.c | |
parent | ed233903fced76d69f63f5a585b5919dd9ff4310 (diff) |
Fix the -Wunused-parameter warnings that have obvious fixes
Signed-off-by: Joerg Mayer <jmayer@loplof.de>
Diffstat (limited to 'sockutils.c')
-rw-r--r-- | sockutils.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sockutils.c b/sockutils.c index 81be8622..ecd67203 100644 --- a/sockutils.c +++ b/sockutils.c @@ -62,6 +62,8 @@ #define INT_MAX 2147483647 #endif +#include "pcap-int.h" + #include "sockutils.h" #include "portability.h" @@ -218,9 +220,9 @@ void sock_geterror(const char *caller, char *errbuf, int errbuflen) * \return '0' if everything is fine, '-1' if some errors occurred. The error message is returned * in the 'errbuf' variable. */ +#ifdef _WIN32 int sock_init(char *errbuf, int errbuflen) { -#ifdef _WIN32 if (sockcount == 0) { WSADATA wsaData; /* helper variable needed to initialize Winsock */ @@ -238,8 +240,10 @@ int sock_init(char *errbuf, int errbuflen) } sockcount++; +#else +int sock_init(char *errbuf _U_, int errbuflen _U_) +{ #endif - return 0; } |