diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-09-23 07:33:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-23 07:33:32 (GMT) |
commit | fe718dec117a7adb8a7107a4137a86c79b54d15f (patch) | |
tree | 81d1fc6efe0f3822f9a0ed89a6fdc28c23bda90a /lib/utils_cmd.h | |
parent | 7f460dd60a73a6e20d03a2312e8bb8fa80e5cdf6 (diff) | |
parent | a3029c5a2e71d4aa4955901f282d3f4669acf97d (diff) | |
download | monitoring-plugins-fe718dec117a7adb8a7107a4137a86c79b54d15f.tar.gz |
Merge pull request #1925 from RincewindsHat/compiler_warnings_4_2
Place _cmd_pids in object not header to avoid unsused variables
Diffstat (limited to 'lib/utils_cmd.h')
-rw-r--r-- | lib/utils_cmd.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/utils_cmd.h b/lib/utils_cmd.h index 6f3aeb8..1fc2968 100644 --- a/lib/utils_cmd.h +++ b/lib/utils_cmd.h | |||
@@ -32,15 +32,6 @@ void cmd_init (void); | |||
32 | #define CMD_NO_ARRAYS 0x01 /* don't populate arrays at all */ | 32 | #define CMD_NO_ARRAYS 0x01 /* don't populate arrays at all */ |
33 | #define CMD_NO_ASSOC 0x02 /* output.line won't point to buf */ | 33 | #define CMD_NO_ASSOC 0x02 /* output.line won't point to buf */ |
34 | 34 | ||
35 | /* This variable must be global, since there's no way the caller | ||
36 | * can forcibly slay a dead or ungainly running program otherwise. | ||
37 | * Multithreading apps and plugins can initialize it (via CMD_INIT) | ||
38 | * in an async safe manner PRIOR to calling cmd_run() or cmd_run_array() | ||
39 | * for the first time. | ||
40 | * | ||
41 | * The check for initialized values is atomic and can | ||
42 | * occur in any number of threads simultaneously. */ | ||
43 | static pid_t *_cmd_pids = NULL; | ||
44 | 35 | ||
45 | RETSIGTYPE timeout_alarm_handler (int); | 36 | RETSIGTYPE timeout_alarm_handler (int); |
46 | 37 | ||