summaryrefslogtreecommitdiffstats
path: root/plugins/check_apt.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_apt.c')
-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 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 */
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 */