diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-03-26 12:53:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-26 12:53:53 +0100 |
| commit | 13e14a6bfd9f29cbfeab0c5161d2a994f97532e7 (patch) | |
| tree | 3aa7186fe092e42783dc7e981dc39a74ea61c466 /gl/getopt1.c | |
| parent | 9d8503f90ef25b2cecd324dc118e441f40233ea8 (diff) | |
| download | monitoring-plugins-13e14a6bfd9f29cbfeab0c5161d2a994f97532e7.tar.gz | |
Update/gnulib 2026 03 (#2247)
* Sync with the 202601-stable Gnulib code (4a3650d887)
* Ignore more deps stuff in gnulib
* Remove autogenerated gnulib files
* Ignore more gnulib generated headers
Diffstat (limited to 'gl/getopt1.c')
| -rw-r--r-- | gl/getopt1.c | 7 |
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, | |||
| 73 | int | 73 | int |
| 74 | main (int argc, char **argv) | 74 | main (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 | ||
