summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2024-10-26 22:57:58 +0200
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-08 10:49:07 +0100
commitebb4bf4bb4c14807878dab488a66868f7f5751e3 (patch)
tree38b7085f7e4bc6b7e34f38cf789e19e5dccfeada
parentb43e913b2c2a380ef59ed3046cac1f0f92b65a9d (diff)
downloadmonitoring-plugins-ebb4bf4bb4c14807878dab488a66868f7f5751e3.tar.gz
check_apt: declare local functions static
-rw-r--r--plugins/check_apt.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/check_apt.c b/plugins/check_apt.c
index 288d37cb..eb08a061 100644
--- a/plugins/check_apt.c
+++ b/plugins/check_apt.c
@@ -57,22 +57,22 @@ typedef enum { UPGRADE, DIST_UPGRADE, NO_UPGRADE } upgrade_type;
57#define SECURITY_RE "^[^\\(]*\\(.* (Debian-Security:|Ubuntu:[^/]*/[^-]*-security)" 57#define SECURITY_RE "^[^\\(]*\\(.* (Debian-Security:|Ubuntu:[^/]*/[^-]*-security)"
58 58
59/* some standard functions */ 59/* some standard functions */
60int process_arguments(int /*argc*/, char ** /*argv*/); 60static int process_arguments(int /*argc*/, char ** /*argv*/);
61void print_help(void); 61static void print_help(void);
62void print_usage(void); 62void print_usage(void);
63 63
64/* construct the appropriate apt-get cmdline */ 64/* construct the appropriate apt-get cmdline */
65char *construct_cmdline(upgrade_type u, const char *opts); 65static char *construct_cmdline(upgrade_type u, const char *opts);
66/* run an apt-get update */ 66/* run an apt-get update */
67int run_update(void); 67static int run_update(void);
68/* run an apt-get upgrade */ 68/* run an apt-get upgrade */
69int run_upgrade(int *pkgcount, int *secpkgcount, char ***pkglist, char ***secpkglist); 69static int run_upgrade(int *pkgcount, int *secpkgcount, char ***pkglist, char ***secpkglist);
70/* add another clause to a regexp */ 70/* add another clause to a regexp */
71char *add_to_regexp(char *expr, const char *next); 71static char *add_to_regexp(char *expr, const char *next);
72/* extract package name from Inst line */ 72/* extract package name from Inst line */
73char *pkg_name(char *line); 73static char *pkg_name(char *line);
74/* string comparison function for qsort */ 74/* string comparison function for qsort */
75int cmpstringp(const void *p1, const void *p2); 75static int cmpstringp(const void *p1, const void *p2);
76 76
77/* configuration variables */ 77/* configuration variables */
78static int verbose = 0; /* -v */ 78static int verbose = 0; /* -v */