summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-10 20:29:46 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-10 20:29:46 (GMT)
commitb48cb1f130cda9818d06aaf74cdc7d2aef13bf42 (patch)
treeb53080fe5cf9b8ae1021dc226738afac973a5819 /lib
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 'lib')
-rw-r--r--lib/utils_base.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils_base.c b/lib/utils_base.c
index 8685e6f..54463e9 100644
--- a/lib/utils_base.c
+++ b/lib/utils_base.c
@@ -27,6 +27,7 @@
27#include "common.h" 27#include "common.h"
28#include <stdarg.h> 28#include <stdarg.h>
29#include "utils_base.h" 29#include "utils_base.h"
30#include <ctype.h>
30#include <fcntl.h> 31#include <fcntl.h>
31#include <sys/stat.h> 32#include <sys/stat.h>
32 33
@@ -34,6 +35,8 @@
34 35
35nagios_plugin *this_nagios_plugin=NULL; 36nagios_plugin *this_nagios_plugin=NULL;
36 37
38int _np_state_read_file(FILE *);
39
37void np_init( char *plugin_name, int argc, char **argv ) { 40void np_init( char *plugin_name, int argc, char **argv ) {
38 if (this_nagios_plugin==NULL) { 41 if (this_nagios_plugin==NULL) {
39 this_nagios_plugin = calloc(1, sizeof(nagios_plugin)); 42 this_nagios_plugin = calloc(1, sizeof(nagios_plugin));