diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1995-12-10 22:31:58 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1995-12-10 22:31:58 +0000 |
| commit | ac4bd338c8528cb5af4afdfa3b4e57438a25cc29 (patch) | |
| tree | a30333a66eed74477c5cb0ebe9623b52e9e9a385 /gnu/usr.bin/cvs/lib/getopt.c | |
| parent | b05543098cea72287ad383f7d67da2cf8ae60b38 (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/cvs/lib/getopt.c')
| -rw-r--r-- | gnu/usr.bin/cvs/lib/getopt.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/usr.bin/cvs/lib/getopt.c b/gnu/usr.bin/cvs/lib/getopt.c index 446a8e423843..f1d8dfa13450 100644 --- a/gnu/usr.bin/cvs/lib/getopt.c +++ b/gnu/usr.bin/cvs/lib/getopt.c @@ -47,6 +47,10 @@ #include <stdio.h> +#ifdef HAVE_STRING_H +#include <string.h> +#endif + /* 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 Library, but also included in many other GNU distributions. Compiling @@ -494,7 +498,7 @@ _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 (nameend - nextchar == strlen (p->name)) + if (nameend - nextchar == (int) strlen (p->name)) { /* Exact match found. */ pfound = p; |
