summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-02-18 21:58:34 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-02-18 21:58:34 +0100
commit0645c9fc2c7f801ba3c7d68a17c137a63ada299f (patch)
treece222906f546f03301defba9ce81ba57591a8eb3 /plugins/utils.h
parent39680498ee0987a5e0eb203a2c0539aa1fa94d39 (diff)
downloadmonitoring-plugins-0645c9fc2c7f801ba3c7d68a17c137a63ada299f.tar.gz
Implement new output functionality
Diffstat (limited to 'plugins/utils.h')
-rw-r--r--plugins/utils.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/utils.h b/plugins/utils.h
index f939e337..c7073990 100644
--- a/plugins/utils.h
+++ b/plugins/utils.h
@@ -13,11 +13,11 @@ in order to resist overflow attacks. In addition, a few functions are
13provided to standardize version and error reporting across the entire 13provided to standardize version and error reporting across the entire
14suite of plugins. */ 14suite of plugins. */
15 15
16/* now some functions etc are being defined in ../lib/utils_base.c */ 16#include "../config.h"
17#include "utils_base.h"
18
19#include <stdbool.h> 17#include <stdbool.h>
20 18#include <stdint.h>
19#include <stdio.h>
20#include <time.h>
21 21
22#ifdef NP_EXTRA_OPTS 22#ifdef NP_EXTRA_OPTS
23/* Include extra-opts functions if compiled in */ 23/* Include extra-opts functions if compiled in */
@@ -78,9 +78,6 @@ char *strpcat (char *, const char *, const char *);
78int xvasprintf (char **strp, const char *fmt, va_list ap); 78int xvasprintf (char **strp, const char *fmt, va_list ap);
79int xasprintf (char **strp, const char *fmt, ...); 79int xasprintf (char **strp, const char *fmt, ...);
80 80
81int max_state (int a, int b);
82int max_state_alt (int a, int b);
83
84void usage (const char *) __attribute__((noreturn)); 81void usage (const char *) __attribute__((noreturn));
85void usage2(const char *, const char *) __attribute__((noreturn)); 82void usage2(const char *, const char *) __attribute__((noreturn));
86void usage3(const char *, int) __attribute__((noreturn)); 83void usage3(const char *, int) __attribute__((noreturn));