summaryrefslogtreecommitdiffstats
path: root/plugins/runcmd.h
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-10 22:29:46 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-10 22:29:46 +0200
commitb48cb1f130cda9818d06aaf74cdc7d2aef13bf42 (patch)
treeb53080fe5cf9b8ae1021dc226738afac973a5819 /plugins/runcmd.h
parentd4a781817cbe1c6168e0687aea968b7a6f348abe (diff)
downloadmonitoring-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.h12
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 **/
30struct 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
38typedef struct output output;
39 29
40/** prototypes **/ 30/** prototypes **/
41int np_runcmd(const char *, output *, output *, int); 31int np_runcmd(const char *, output *, output *, int);