diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-03-12 19:56:43 +0100 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-04-18 00:18:07 +0200 |
commit | f7687d47cb0841d0bc12ef205fcbaef8bf2e3805 (patch) | |
tree | 775d3dc69ae69bff4c57c41bbdfaea3e7086ab6d /plugins/check_snmp.c | |
parent | 41fb615f3de34c3b3a344e74fd9cc24936cd58a6 (diff) | |
download | monitoring-plugins-f7687d47cb0841d0bc12ef205fcbaef8bf2e3805.tar.gz |
Fixes for -Wimplicit-fallthrough
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r-- | plugins/check_snmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index c425df3c..04dc6c6f 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); |