diff options
-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 288d37c..eb08a06 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 */ |