mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-03 18:49:29 -05:00
There are different declarations for timeout_interval: lib/utils_base.c has the definition: unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT; lib/utils_base.h has the appropiate declaration: extern unsigned int timeout_interval; plugins/popen.h has an extra declaration: extern unsigned int timeout_interval; This doesn't hurt, but it's a dupe. The one in utils_base.h should be enough, so remove this one. plugins/popen.c has a WRONG one: extern int timeout_interval; Remove it! Use #include "utils.h" to get the right one. This makes the local defines for max/min unnecassary, so remove them also.
13 lines
365 B
C
13 lines
365 B
C
/******************************************************************************
|
|
*
|
|
*
|
|
*****************************************************************************/
|
|
|
|
FILE *spopen (const char *);
|
|
int spclose (FILE *);
|
|
RETSIGTYPE popen_timeout_alarm_handler (int);
|
|
|
|
pid_t *childpid=NULL;
|
|
int *child_stderr_array=NULL;
|
|
FILE *child_process=NULL;
|
|
FILE *child_stderr=NULL;
|