summaryrefslogtreecommitdiffstats
path: root/gl/getopt1.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2026-03-27 11:14:20 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2026-03-27 11:14:20 +0100
commit1113bbcd92d85b85579aa7feef511241e58fb0f5 (patch)
treed69b7bcfe2f7e80fda9a1f4ddd38209d6cb7aaf0 /gl/getopt1.c
parent99283972fe3a74d3a1dea12c4099f76286130a67 (diff)
parenta71ce153082565e5728424749475593dc0623492 (diff)
downloadmonitoring-plugins-1113bbcd92d85b85579aa7feef511241e58fb0f5.tar.gz
merged with mastercheck_snmp_fixes
Diffstat (limited to 'gl/getopt1.c')
-rw-r--r--gl/getopt1.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gl/getopt1.c b/gl/getopt1.c
index c8566845..a5f99888 100644
--- a/gl/getopt1.c
+++ b/gl/getopt1.c
@@ -1,5 +1,5 @@
1/* getopt_long and getopt_long_only entry points for GNU getopt. 1/* getopt_long and getopt_long_only entry points for GNU getopt.
2 Copyright (C) 1987-2025 Free Software Foundation, Inc. 2 Copyright (C) 1987-2026 Free Software Foundation, Inc.
3 This file is part of the GNU C Library and is also part of gnulib. 3 This file is part of the GNU C Library and is also part of gnulib.
4 Patches to this file should be submitted to both projects. 4 Patches to this file should be submitted to both projects.
5 5
@@ -73,7 +73,6 @@ _getopt_long_only_r (int argc, char **argv, const char *options,
73int 73int
74main (int argc, char **argv) 74main (int argc, char **argv)
75{ 75{
76 int c;
77 int digit_optind = 0; 76 int digit_optind = 0;
78 77
79 while (1) 78 while (1)
@@ -91,8 +90,8 @@ main (int argc, char **argv)
91 {0, 0, 0, 0} 90 {0, 0, 0, 0}
92 }; 91 };
93 92
94 c = getopt_long (argc, argv, "abc:d:0123456789", 93 int c = getopt_long (argc, argv, "abc:d:0123456789",
95 long_options, &option_index); 94 long_options, &option_index);
96 if (c == -1) 95 if (c == -1)
97 break; 96 break;
98 97