From b48cb1f130cda9818d06aaf74cdc7d2aef13bf42 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 10 Sep 2013 22:29:46 +0200 Subject: Fix GCC's -Wimplicit-function-declaration warnings Fix the issues found by GCC when the -Wimplicit-function-declaration flag is specified. --- plugins/runcmd.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'plugins/runcmd.h') 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); -- cgit v1.2.3