summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-03-12 18:56:43 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-04-17 22:18:07 (GMT)
commitf7687d47cb0841d0bc12ef205fcbaef8bf2e3805 (patch)
tree775d3dc69ae69bff4c57c41bbdfaea3e7086ab6d /plugins
parent41fb615f3de34c3b3a344e74fd9cc24936cd58a6 (diff)
downloadmonitoring-plugins-f7687d47cb0841d0bc12ef205fcbaef8bf2e3805.tar.gz
Fixes for -Wimplicit-fallthrough
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_curl.c1
-rw-r--r--plugins/check_dbi.c1
-rw-r--r--plugins/check_fping.c1
-rw-r--r--plugins/check_hpjd.c1
-rw-r--r--plugins/check_http.c1
-rw-r--r--plugins/check_smtp.c1
-rw-r--r--plugins/check_snmp.c1
7 files changed, 7 insertions, 0 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index be5740d..b713714 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -1654,6 +1654,7 @@ process_arguments (int argc, char **argv)
1654 break; 1654 break;
1655 case 'R': /* regex */ 1655 case 'R': /* regex */
1656 cflags |= REG_ICASE; 1656 cflags |= REG_ICASE;
1657 // fall through
1657 case 'r': /* regex */ 1658 case 'r': /* regex */
1658 strncpy (regexp, optarg, MAX_RE_SIZE - 1); 1659 strncpy (regexp, optarg, MAX_RE_SIZE - 1);
1659 regexp[MAX_RE_SIZE - 1] = 0; 1660 regexp[MAX_RE_SIZE - 1] = 0;
diff --git a/plugins/check_dbi.c b/plugins/check_dbi.c
index ced13d0..d73efbb 100644
--- a/plugins/check_dbi.c
+++ b/plugins/check_dbi.c
@@ -426,6 +426,7 @@ process_arguments (int argc, char **argv)
426 else 426 else
427 timeout_interval = atoi (optarg); 427 timeout_interval = atoi (optarg);
428 428
429 break;
429 case 'H': /* host */ 430 case 'H': /* host */
430 if (!is_host (optarg)) 431 if (!is_host (optarg))
431 usage2 (_("Invalid hostname/address"), optarg); 432 usage2 (_("Invalid hostname/address"), optarg);
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 6f5656e..23a9e99 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -354,6 +354,7 @@ process_arguments (int argc, char **argv)
354 break; 354 break;
355 case 'I': /* sourceip */ 355 case 'I': /* sourceip */
356 sourceif = strscpy (sourceif, optarg); 356 sourceif = strscpy (sourceif, optarg);
357 break;
357 case '4': /* IPv4 only */ 358 case '4': /* IPv4 only */
358 address_family = AF_INET; 359 address_family = AF_INET;
359 break; 360 break;
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index c4b4417..c34bb08 100644
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
@@ -353,6 +353,7 @@ process_arguments (int argc, char **argv)
353 usage2 (_("Port must be a positive short integer"), optarg); 353 usage2 (_("Port must be a positive short integer"), optarg);
354 else 354 else
355 port = atoi(optarg); 355 port = atoi(optarg);
356 break;
356 case 'D': /* disable paper out check*/ 357 case 'D': /* disable paper out check*/
357 check_paper_out = 0; 358 check_paper_out = 0;
358 break; 359 break;
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 8c03bc8..432a984 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -498,6 +498,7 @@ bool process_arguments (int argc, char **argv)
498 break; 498 break;
499 case 'R': /* regex */ 499 case 'R': /* regex */
500 cflags |= REG_ICASE; 500 cflags |= REG_ICASE;
501 // fall through
501 case 'r': /* regex */ 502 case 'r': /* regex */
502 strncpy (regexp, optarg, MAX_RE_SIZE - 1); 503 strncpy (regexp, optarg, MAX_RE_SIZE - 1);
503 regexp[MAX_RE_SIZE - 1] = 0; 504 regexp[MAX_RE_SIZE - 1] = 0;
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index eaa7eeb..b035aab 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -616,6 +616,7 @@ process_arguments (int argc, char **argv)
616#else 616#else
617 usage (_("SSL support not available - install OpenSSL and recompile")); 617 usage (_("SSL support not available - install OpenSSL and recompile"));
618#endif 618#endif
619 // fall through
619 case 'S': 620 case 'S':
620 /* starttls */ 621 /* starttls */
621 use_ssl = TRUE; 622 use_ssl = TRUE;
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index c425df3..04dc6c6 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -855,6 +855,7 @@ process_arguments (int argc, char **argv)
855 break; 855 break;
856 case 'R': /* regex */ 856 case 'R': /* regex */
857 cflags = REG_ICASE; 857 cflags = REG_ICASE;
858 // fall through
858 case 'r': /* regex */ 859 case 'r': /* regex */
859 cflags |= REG_EXTENDED | REG_NOSUB | REG_NEWLINE; 860 cflags |= REG_EXTENDED | REG_NOSUB | REG_NEWLINE;
860 strncpy (regex_expect, optarg, sizeof (regex_expect) - 1); 861 strncpy (regex_expect, optarg, sizeof (regex_expect) - 1);