summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-07-10 08:29:43 (GMT)
committerGitHub <noreply@github.com>2023-07-10 08:29:43 (GMT)
commit443f665c6c92c2b67a47cbe37acd7aae1e07de5c (patch)
tree3a02f6ce03e8f781dcfca22ee1f17817225a0ff9 /plugins/check_snmp.c
parentb24eb7f46ac8667324efd818c01d68d5a1376c89 (diff)
parent265a7c0ed8ccde7868bb7e77c44aecc403743c21 (diff)
downloadmonitoring-plugins-443f665c6c92c2b67a47cbe37acd7aae1e07de5c.tar.gz
Merge pull request #1867 from RincewindsHat/compiler_warning_part_2
Compiler warning part 2
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c1
1 files changed, 1 insertions, 0 deletions
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);