]> The Tcpdump Group git mirrors - libpcap/commitdiff
Squelch another unused-parameter warning.
authorGuy Harris <[email protected]>
Tue, 3 Apr 2018 01:45:32 +0000 (18:45 -0700)
committerGuy Harris <[email protected]>
Tue, 3 Apr 2018 01:45:32 +0000 (18:45 -0700)
rpcapd/daemon.c

index 7c310111afae4f3e4d5fbdca2036a974b6d3d11e..00d84c82c10e4704751fe81ce6639748cd7c4d0b 100755 (executable)
@@ -34,6 +34,7 @@
 #endif
 
 #include "ftmacros.h"
 #endif
 
 #include "ftmacros.h"
+#include "varattrs.h"
 
 #include <errno.h>             // for the errno variable
 #include <stdlib.h>            // for malloc(), free(), ...
 
 #include <errno.h>             // for the errno variable
 #include <stdlib.h>            // for malloc(), free(), ...
@@ -1518,9 +1519,9 @@ error:
 */
 static int
 #ifdef _WIN32
 */
 static int
 #ifdef _WIN32
-daemon_msg_startcap_req(struct daemon_slpars *pars, uint32 plen, int *have_thread, HANDLE *threaddata, char *source, struct session **sessionp, struct rpcap_sampling *samp_param)
+daemon_msg_startcap_req(struct daemon_slpars *pars, uint32 plen, int *have_thread, HANDLE *threaddata, char *source, struct session **sessionp, struct rpcap_sampling *samp_param _U_)
 #else
 #else
-daemon_msg_startcap_req(struct daemon_slpars *pars, uint32 plen, int *have_thread, pthread_t *threaddata, char *source, struct session **sessionp, struct rpcap_sampling *samp_param)
+daemon_msg_startcap_req(struct daemon_slpars *pars, uint32 plen, int *have_thread, pthread_t *threaddata, char *source, struct session **sessionp, struct rpcap_sampling *samp_param _U_)
 #endif
 {
        char errbuf[PCAP_ERRBUF_SIZE];          // buffer for network errors
 #endif
 {
        char errbuf[PCAP_ERRBUF_SIZE];          // buffer for network errors
@@ -1540,8 +1541,7 @@ daemon_msg_startcap_req(struct daemon_slpars *pars, uint32 plen, int *have_threa
        socklen_t saddrlen;                     // temp, needed to retrieve the network data port chosen on the local machine
        int ret;                                // return value from functions
 
        socklen_t saddrlen;                     // temp, needed to retrieve the network data port chosen on the local machine
        int ret;                                // return value from functions
 
-#ifdef _WIN32
-#else
+#ifndef _WIN32
        pthread_attr_t detachedAttribute;       // temp, needed to set the created thread as detached
 #endif
 
        pthread_attr_t detachedAttribute;       // temp, needed to set the created thread as detached
 #endif