diff options
Diffstat (limited to 'src/share/getopt/getopt.c')
-rw-r--r-- | src/share/getopt/getopt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/share/getopt/getopt.c b/src/share/getopt/getopt.c index e8a13aa4..7928ad33 100644 --- a/src/share/getopt/getopt.c +++ b/src/share/getopt/getopt.c @@ -54,6 +54,7 @@ #endif #include <stdio.h> +#include <stdint.h> /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself. This code is part of the GNU C @@ -663,8 +664,8 @@ share___getopt_internal (argc, argv, optstring, longopts, longind, long_only) for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp (p->name, nextchar, nameend - nextchar)) { - if ((unsigned int) (nameend - nextchar) - == (unsigned int) strlen (p->name)) + if ((uint32_t) (nameend - nextchar) + == (uint32_t) strlen (p->name)) { /* Exact match found. */ pfound = p; @@ -852,7 +853,7 @@ share___getopt_internal (argc, argv, optstring, longopts, longind, long_only) for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp (p->name, nextchar, nameend - nextchar)) { - if ((unsigned int) (nameend - nextchar) == strlen (p->name)) + if ((uint32_t) (nameend - nextchar) == strlen (p->name)) { /* Exact match found. */ pfound = p; |