summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_procs.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index e95a072..29f86be 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -117,12 +117,8 @@ main (int argc, char **argv)
117 fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process); 117 fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process);
118 118
119 while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process)) { 119 while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process)) {
120#ifdef USE_PS_VARS
121 cols = sscanf (input_buffer, PS_FORMAT, PS_VARLIST); 120 cols = sscanf (input_buffer, PS_FORMAT, PS_VARLIST);
122#else 121
123 cols = sscanf (input_buffer, PS_FORMAT, procstat, &procuid,
124 &procppid, &pos, procprog);
125#endif
126 /* Zombie processes do not give a procprog command */ 122 /* Zombie processes do not give a procprog command */
127 if ( cols == 3 && strstr(procstat, zombie) ) { 123 if ( cols == 3 && strstr(procstat, zombie) ) {
128 strcpy(procprog, ""); 124 strcpy(procprog, "");