diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 +0000 |
commit | caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe (patch) | |
tree | 118fd80cc8ba27ef695a8e8ce409e5d70f4fa451 /plugins/check_apt.c | |
parent | 16f53e0717b60660145388b0feb351628f606211 (diff) | |
download | monitoring-plugins-caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe.tar.gz |
Bulk EOL cleanup
$ git diff --ignore-space-change|diffstat
0 files changed
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_apt.c')
-rw-r--r-- | plugins/check_apt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_apt.c b/plugins/check_apt.c index 440755d6..49a7c4f7 100644 --- a/plugins/check_apt.c +++ b/plugins/check_apt.c | |||
@@ -116,7 +116,7 @@ int main (int argc, char **argv) { | |||
116 | result = max_state(result, STATE_OK); | 116 | result = max_state(result, STATE_OK); |
117 | } | 117 | } |
118 | 118 | ||
119 | printf(_("APT %s: %d packages available for %s (%d critical updates). %s%s%s%s\n"), | 119 | printf(_("APT %s: %d packages available for %s (%d critical updates). %s%s%s%s\n"), |
120 | state_text(result), | 120 | state_text(result), |
121 | packages_available, | 121 | packages_available, |
122 | (upgrade==DIST_UPGRADE)?"dist-upgrade":"upgrade", | 122 | (upgrade==DIST_UPGRADE)?"dist-upgrade":"upgrade", |
@@ -305,7 +305,7 @@ int run_upgrade(int *pkgcount, int *secpkgcount){ | |||
305 | } | 305 | } |
306 | regfree(&ireg); | 306 | regfree(&ireg); |
307 | regfree(&sreg); | 307 | regfree(&sreg); |
308 | if(do_exclude!=NULL) regfree(&ereg); | 308 | if(do_exclude!=NULL) regfree(&ereg); |
309 | free(cmdline); | 309 | free(cmdline); |
310 | return result; | 310 | return result; |
311 | } | 311 | } |
@@ -364,7 +364,7 @@ char* add_to_regexp(char *expr, const char *next){ | |||
364 | sprintf((char*)(re+strlen(re)-2), "|%s) ", next); | 364 | sprintf((char*)(re+strlen(re)-2), "|%s) ", next); |
365 | } | 365 | } |
366 | 366 | ||
367 | return re; | 367 | return re; |
368 | } | 368 | } |
369 | 369 | ||
370 | char* construct_cmdline(upgrade_type u, const char *opts){ | 370 | char* construct_cmdline(upgrade_type u, const char *opts){ |