aboutsummaryrefslogtreecommitdiff
path: root/plugins/runcmd.h
diff options
context:
space:
mode:
authorGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2013-09-10 22:29:46 +0200
committerGravatar Holger 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 @@
#define NAGIOSPLUG_RUNCMD_H
#include "common.h"
-
-/** types **/
-struct output {
- char *buf; /* output buffer */
- size_t buflen; /* output buffer content length */
- char **line; /* array of lines (points to buf) */
- size_t *lens; /* string lengths */
- size_t lines; /* lines of output */
-};
-
-typedef struct output output;
+#include "utils_cmd.h" /* for the "output" type */
/** prototypes **/
int np_runcmd(const char *, output *, output *, int);