aboutsummaryrefslogtreecommitdiff
path: root/plugins/utils.c
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-08-02 18:22:51 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-08-02 18:22:51 +0000
commit3c48edf660facd4bd93181333b48960afd83934b (patch)
treeb6f4399575f3029580888e4e798b6cb9b94bbe13 /plugins/utils.c
parent743a44e936edbb649e67f99fdf7712e1c60eee39 (diff)
downloadmonitoring-plugins-3c48edf660facd4bd93181333b48960afd83934b.tar.gz
ifdef so utils.h can be header for utils.c
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@633 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/utils.c')
-rw-r--r--plugins/utils.c40
1 files changed, 4 insertions, 36 deletions
diff --git a/plugins/utils.c b/plugins/utils.c
index 128052d0..5f770a1f 100644
--- a/plugins/utils.c
+++ b/plugins/utils.c
@@ -11,49 +11,19 @@
* $Date$
****************************************************************************/
+#define LOCAL_TIMEOUT_ALARM_HANDLER
+
#include "config.h"
#include "common.h"
+#include "utils.h"
#include <stdarg.h>
#include <limits.h>
#include <arpa/inet.h>
extern void print_usage (void);
-extern int timeout_interval;
extern const char *progname;
-void support (void);
-char *clean_revstring (const char *);
-void print_revision (const char *, const char *);
-void die (int result, const char *fmt, ...);
-void terminate (int result, const char *fmt, ...);
-RETSIGTYPE timeout_alarm_handler (int);
-
-int is_integer (char *);
-int is_intpos (char *);
-int is_intneg (char *);
-int is_intnonneg (char *);
-int is_intpercent (char *);
-
-int is_numeric (char *);
-int is_positive (char *);
-int is_negative (char *);
-int is_nonnegative (char *);
-int is_percentage (char *);
-
-int is_option (char *str);
-
-double delta_time (struct timeval tv);
-
-void strip (char *);
-char *strscpy (char *dest, const char *src);
-char *strscat (char *dest, char *src);
-char *strnl (char *str);
-char *strpcpy (char *dest, const char *src, const char *str);
-char *strpcat (char *dest, const char *src, const char *str);
-
-char *state_text (int result);
-
#define STRLEN 64
#define TXTBLK 128
@@ -65,8 +35,6 @@ char *state_text (int result);
* Note that numerically the above does not hold
****************************************************************************/
-#define max(a,b) (((a)>(b))?(a):(b))
-
int
max_state (int a, int b)
{
@@ -398,7 +366,7 @@ strscpy (char *dest, const char *src)
*****************************************************************************/
char *
-strscat (char *dest, char *src)
+strscat (char *dest, const char *src)
{
if (dest == NULL)