summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_apt.c2
-rw-r--r--plugins/check_http.c2
-rw-r--r--plugins/check_snmp.c4
-rw-r--r--plugins/check_tcp.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_apt.c b/plugins/check_apt.c
index 290c88e..5c0f6e2 100644
--- a/plugins/check_apt.c
+++ b/plugins/check_apt.c
@@ -252,7 +252,7 @@ int process_arguments (int argc, char **argv) {
252 252
253/* run an apt-get upgrade */ 253/* run an apt-get upgrade */
254int run_upgrade(int *pkgcount, int *secpkgcount, char ***pkglist, char ***secpkglist){ 254int run_upgrade(int *pkgcount, int *secpkgcount, char ***pkglist, char ***secpkglist){
255 int i=0, result=STATE_UNKNOWN, regres=0, pc=0, spc=0; 255 int result=STATE_UNKNOWN, regres=0, pc=0, spc=0;
256 struct output chld_out, chld_err; 256 struct output chld_out, chld_err;
257 regex_t ireg, ereg, sreg; 257 regex_t ireg, ereg, sreg;
258 char *cmdline=NULL, rerrbuf[64]; 258 char *cmdline=NULL, rerrbuf[64];
diff --git a/plugins/check_http.c b/plugins/check_http.c
index b9d8145..110f118 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -471,7 +471,7 @@ bool process_arguments (int argc, char **argv)
471 free(http_method); 471 free(http_method);
472 http_method = strdup (optarg); 472 http_method = strdup (optarg);
473 char *tmp; 473 char *tmp;
474 if ((tmp = strstr(http_method, ":")) > 0) { 474 if ((tmp = strstr(http_method, ":")) != NULL) {
475 tmp[0] = '\0'; 475 tmp[0] = '\0';
476 http_method = http_method; 476 http_method = http_method;
477 http_method_proxy = ++tmp; 477 http_method_proxy = ++tmp;
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 01bee23..7ee9d0c 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -263,7 +263,7 @@ main (int argc, char **argv)
263 previous_string = strdup((char *) previous_state->data); 263 previous_string = strdup((char *) previous_state->data);
264 while((ap = strsep(&previous_string, ":")) != NULL) { 264 while((ap = strsep(&previous_string, ":")) != NULL) {
265 if(verbose>2) 265 if(verbose>2)
266 printf("State for %d=%s\n", i, ap); 266 printf("State for %zd=%s\n", i, ap);
267 while (i >= previous_size) { 267 while (i >= previous_size) {
268 previous_size += OID_COUNT_STEP; 268 previous_size += OID_COUNT_STEP;
269 previous_value = realloc(previous_value, previous_size * sizeof(*previous_value)); 269 previous_value = realloc(previous_value, previous_size * sizeof(*previous_value));
@@ -415,7 +415,7 @@ main (int argc, char **argv)
415 break; 415 break;
416 416
417 if (verbose > 2) { 417 if (verbose > 2) {
418 printf("Processing oid %i (line %i)\n oidname: %s\n response: %s\n", i+1, line+1, oidname, response); 418 printf("Processing oid %zi (line %zi)\n oidname: %s\n response: %s\n", i+1, line+1, oidname, response);
419 } 419 }
420 420
421 /* Clean up type array - Sol10 does not necessarily zero it out */ 421 /* Clean up type array - Sol10 does not necessarily zero it out */
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index c103612..054f1a3 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -275,7 +275,7 @@ main (int argc, char **argv)
275 } 275 }
276 printf("server_expect_count: %d\n", (int)server_expect_count); 276 printf("server_expect_count: %d\n", (int)server_expect_count);
277 for(size_t i = 0; i < server_expect_count; i++) 277 for(size_t i = 0; i < server_expect_count; i++)
278 printf("\t%d: %s\n", i, server_expect[i]); 278 printf("\t%zd: %s\n", i, server_expect[i]);
279 } 279 }
280 280
281 /* if(len) later on, we know we have a non-NULL response */ 281 /* if(len) later on, we know we have a non-NULL response */