]> The Tcpdump Group git mirrors - libpcap/commitdiff
Merge pull request #685 from jmayer/add-static
authorGuy Harris <[email protected]>
Mon, 2 Apr 2018 07:44:47 +0000 (00:44 -0700)
committerGitHub <[email protected]>
Mon, 2 Apr 2018 07:44:47 +0000 (00:44 -0700)
Declare some variables static (found via -Wmissing-variable-declarations)

1  2 
rpcapd/rpcapd.c

diff --cc rpcapd/rpcapd.c
index 8c1ca3eefd430793bada1e7497e1cfd2019383af,c46e3106963a0e92cf222f7e3b33951b8305803b..21217c8b09aef68a5770cf620e78b758e54e0884
@@@ -76,15 -74,16 +76,15 @@@ struct active_pars activelist[MAX_ACTIV
  int nullAuthAllowed;                          //!< '1' if we permit NULL authentication, '0' otherwise
  static struct listen_sock *listen_socks;      //!< sockets on which we listen
  char loadfile[MAX_LINE + 1];                  //!< Name of the file from which we have to load the configuration
int passivemode = 1;                          //!< '1' if we want to run in passive mode as well
- struct addrinfo mainhints;                    //!< temporary struct to keep settings needed to open the new socket
char address[MAX_LINE + 1];                   //!< keeps the network address (either numeric or literal) to bind to
char port[MAX_LINE + 1];                      //!< keeps the network port to bind to
static int passivemode = 1;                   //!< '1' if we want to run in passive mode as well
+ static struct addrinfo mainhints;             //!< temporary struct to keep settings needed to open the new socket
static char address[MAX_LINE + 1];            //!< keeps the network address (either numeric or literal) to bind to
static char port[MAX_LINE + 1];                       //!< keeps the network port to bind to
  #ifdef _WIN32
 -static HANDLE shutdown_event;                 //!< event to signal to shut down the main loop
 -#else
 +static HANDLE state_change_event;             //!< event to signal that a state change should take place
 +#endif
  static volatile sig_atomic_t shutdown_server; //!< '1' if the server is to shut down
  static volatile sig_atomic_t reread_config;   //!< '1' if the server is to re-read its configuration
 -#endif
  
  extern char *optarg;  // for getopt()