diff options
author | M. Sean Finney <seanius@users.sourceforge.net> | 2006-09-02 20:41:18 (GMT) |
---|---|---|
committer | M. Sean Finney <seanius@users.sourceforge.net> | 2006-09-02 20:41:18 (GMT) |
commit | 8efd2d1d907e4741cf979fd123d62965bf9ae3d5 (patch) | |
tree | f51d1a903c2965c43f803ab85d6941a994f0c2e8 | |
parent | 1efb32375031098a7a5bb94301796567c06829fc (diff) | |
download | monitoring-plugins-8efd2d1d907e4741cf979fd123d62965bf9ae3d5.tar.gz |
- explicitly include utils_base.h from utils.h
- put utils.h inside of an #ifndef/#endif
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1474 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | lib/utils_base.h | 4 | ||||
-rw-r--r-- | plugins/utils.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/utils_base.h b/lib/utils_base.h index ca27f16..113e304 100644 --- a/lib/utils_base.h +++ b/lib/utils_base.h | |||
@@ -1,3 +1,5 @@ | |||
1 | #ifndef _UTILS_BASE_ | ||
2 | #define _UTILS_BASE_ | ||
1 | /* Header file for nagios plugins utils_base.c */ | 3 | /* Header file for nagios plugins utils_base.c */ |
2 | 4 | ||
3 | /* This file holds header information for thresholds - use this in preference to | 5 | /* This file holds header information for thresholds - use this in preference to |
@@ -35,3 +37,5 @@ int get_status(double, thresholds *); | |||
35 | char *np_escaped_string (const char *); | 37 | char *np_escaped_string (const char *); |
36 | 38 | ||
37 | void die (int, const char *, ...) __attribute__((noreturn,format(printf, 2, 3))); | 39 | void die (int, const char *, ...) __attribute__((noreturn,format(printf, 2, 3))); |
40 | |||
41 | #endif /* _UTILS_BASE_ */ | ||
diff --git a/plugins/utils.h b/plugins/utils.h index 1f53aad..0d00ce8 100644 --- a/plugins/utils.h +++ b/plugins/utils.h | |||
@@ -13,6 +13,9 @@ in order to resist overflow attacks. In addition, a few functions are | |||
13 | provided to standardize version and error reporting across the entire | 13 | provided to standardize version and error reporting across the entire |
14 | suite of plugins. */ | 14 | suite of plugins. */ |
15 | 15 | ||
16 | /* now some functions etc are being defined in ../lib/utils_base.c */ | ||
17 | #include "utils_base.h" | ||
18 | |||
16 | /* Standardize version information, termination */ | 19 | /* Standardize version information, termination */ |
17 | 20 | ||
18 | /* $Id$ */ | 21 | /* $Id$ */ |