summaryrefslogtreecommitdiffstats
path: root/gl/getopt1.c
diff options
context:
space:
mode:
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