summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins-root/check_icmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index 8f5c1fe4..14e63c89 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -411,7 +411,7 @@ check_icmp_config_wrapper process_arguments(int argc, char **argv) {
411 switch (arg) { 411 switch (arg) {
412 case 'b': { 412 case 'b': {
413 long size = strtol(optarg, NULL, 0); 413 long size = strtol(optarg, NULL, 0);
414 if ((unsigned long)size >= (sizeof(struct icmp) + sizeof(struct icmp_ping_data)) && 414 if (size >= (long)(sizeof(struct icmp) + sizeof(struct icmp_ping_data)) &&
415 size < MAX_PING_DATA) { 415 size < MAX_PING_DATA) {
416 result.config.icmp_data_size = (unsigned short)size; 416 result.config.icmp_data_size = (unsigned short)size;
417 } else { 417 } else {