summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 03:47:03 +0100
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 03:47:03 +0100
commitf33412e50acbb57c3c02a412a3e9574639576f83 (patch)
tree57be3a46dd9801a2ed469d001a6154698d679937
parenta4b3386657625fa8d24ca25993560895694ad9c8 (diff)
downloadmonitoring-plugins-f33412e50acbb57c3c02a412a3e9574639576f83.tar.gz
check_hpjd: do not export local symbols
-rw-r--r--plugins/check_hpjd.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index 713b108b..6e4ddcbf 100644
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
@@ -41,8 +41,6 @@ const char *email = "devel@monitoring-plugins.org";
41#define DEFAULT_COMMUNITY "public" 41#define DEFAULT_COMMUNITY "public"
42#define DEFAULT_PORT "161" 42#define DEFAULT_PORT "161"
43 43
44const char *option_summary = "-H host [-C community]\n";
45
46#define HPJD_LINE_STATUS ".1.3.6.1.4.1.11.2.3.9.1.1.2.1" 44#define HPJD_LINE_STATUS ".1.3.6.1.4.1.11.2.3.9.1.1.2.1"
47#define HPJD_PAPER_STATUS ".1.3.6.1.4.1.11.2.3.9.1.1.2.2" 45#define HPJD_PAPER_STATUS ".1.3.6.1.4.1.11.2.3.9.1.1.2.2"
48#define HPJD_INTERVENTION_REQUIRED ".1.3.6.1.4.1.11.2.3.9.1.1.2.3" 46#define HPJD_INTERVENTION_REQUIRED ".1.3.6.1.4.1.11.2.3.9.1.1.2.3"
@@ -59,15 +57,15 @@ const char *option_summary = "-H host [-C community]\n";
59#define ONLINE 0 57#define ONLINE 0
60#define OFFLINE 1 58#define OFFLINE 1
61 59
62int process_arguments(int, char **); 60static int process_arguments(int, char **);
63int validate_arguments(void); 61static int validate_arguments(void);
64void print_help(void); 62static void print_help(void);
65void print_usage(void); 63void print_usage(void);
66 64
67char *community = NULL; 65static char *community = NULL;
68char *address = NULL; 66static char *address = NULL;
69unsigned int port = 0; 67static unsigned int port = 0;
70int check_paper_out = 1; 68static int check_paper_out = 1;
71 69
72int main(int argc, char **argv) { 70int main(int argc, char **argv) {
73 char command_line[1024]; 71 char command_line[1024];