diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-10 22:29:46 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-10 22:29:46 +0200 |
commit | b48cb1f130cda9818d06aaf74cdc7d2aef13bf42 (patch) | |
tree | b53080fe5cf9b8ae1021dc226738afac973a5819 /plugins/runcmd.h | |
parent | d4a781817cbe1c6168e0687aea968b7a6f348abe (diff) | |
download | monitoring-plugins-b48cb1f130cda9818d06aaf74cdc7d2aef13bf42.tar.gz |
Fix GCC's -Wimplicit-function-declaration warnings
Fix the issues found by GCC when the -Wimplicit-function-declaration
flag is specified.
Diffstat (limited to 'plugins/runcmd.h')
-rw-r--r-- | plugins/runcmd.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/plugins/runcmd.h b/plugins/runcmd.h index 5957562b..fe660673 100644 --- a/plugins/runcmd.h +++ b/plugins/runcmd.h | |||
@@ -25,17 +25,7 @@ | |||
25 | #define NAGIOSPLUG_RUNCMD_H | 25 | #define NAGIOSPLUG_RUNCMD_H |
26 | 26 | ||
27 | #include "common.h" | 27 | #include "common.h" |
28 | 28 | #include "utils_cmd.h" /* for the "output" type */ | |
29 | /** types **/ | ||
30 | struct output { | ||
31 | char *buf; /* output buffer */ | ||
32 | size_t buflen; /* output buffer content length */ | ||
33 | char **line; /* array of lines (points to buf) */ | ||
34 | size_t *lens; /* string lengths */ | ||
35 | size_t lines; /* lines of output */ | ||
36 | }; | ||
37 | |||
38 | typedef struct output output; | ||
39 | 29 | ||
40 | /** prototypes **/ | 30 | /** prototypes **/ |
41 | int np_runcmd(const char *, output *, output *, int); | 31 | int np_runcmd(const char *, output *, output *, int); |