diff options
| author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-26 22:57:58 +0200 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 10:49:07 +0100 |
| commit | ebb4bf4bb4c14807878dab488a66868f7f5751e3 (patch) | |
| tree | 38b7085f7e4bc6b7e34f38cf789e19e5dccfeada | |
| parent | b43e913b2c2a380ef59ed3046cac1f0f92b65a9d (diff) | |
| download | monitoring-plugins-ebb4bf4bb4c14807878dab488a66868f7f5751e3.tar.gz | |
check_apt: declare local functions static
| -rw-r--r-- | plugins/check_apt.c | 16 |
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 */ |
| 60 | int process_arguments(int /*argc*/, char ** /*argv*/); | 60 | static int process_arguments(int /*argc*/, char ** /*argv*/); |
| 61 | void print_help(void); | 61 | static void print_help(void); |
| 62 | void print_usage(void); | 62 | void print_usage(void); |
| 63 | 63 | ||
| 64 | /* construct the appropriate apt-get cmdline */ | 64 | /* construct the appropriate apt-get cmdline */ |
| 65 | char *construct_cmdline(upgrade_type u, const char *opts); | 65 | static char *construct_cmdline(upgrade_type u, const char *opts); |
| 66 | /* run an apt-get update */ | 66 | /* run an apt-get update */ |
| 67 | int run_update(void); | 67 | static int run_update(void); |
| 68 | /* run an apt-get upgrade */ | 68 | /* run an apt-get upgrade */ |
| 69 | int run_upgrade(int *pkgcount, int *secpkgcount, char ***pkglist, char ***secpkglist); | 69 | static 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 */ |
| 71 | char *add_to_regexp(char *expr, const char *next); | 71 | static char *add_to_regexp(char *expr, const char *next); |
| 72 | /* extract package name from Inst line */ | 72 | /* extract package name from Inst line */ |
| 73 | char *pkg_name(char *line); | 73 | static char *pkg_name(char *line); |
| 74 | /* string comparison function for qsort */ | 74 | /* string comparison function for qsort */ |
| 75 | int cmpstringp(const void *p1, const void *p2); | 75 | static int cmpstringp(const void *p1, const void *p2); |
| 76 | 76 | ||
| 77 | /* configuration variables */ | 77 | /* configuration variables */ |
| 78 | static int verbose = 0; /* -v */ | 78 | static int verbose = 0; /* -v */ |
