summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-10-26 04:10:50 +0000
committerpeter <peter@FreeBSD.org>2003-10-26 04:10:50 +0000
commitb84f0fd155e49705a484772173cc8ccacb79032a (patch)
tree26a54379cc0742eb55ddd5b8879746f5fc5e6e16 /gnu
parent92983ccab19b2e63090924c93cb910e8d2f48bc7 (diff)
downloadFreeBSD-src-b84f0fd155e49705a484772173cc8ccacb79032a.zip
FreeBSD-src-b84f0fd155e49705a484772173cc8ccacb79032a.tar.gz
The third arg to strncmp() is size_t, not int. This causes a warning on
systems where size_t is long, not int.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gzip/getopt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/gzip/getopt.c b/gnu/usr.bin/gzip/getopt.c
index 55fad84..70729bb 100644
--- a/gnu/usr.bin/gzip/getopt.c
+++ b/gnu/usr.bin/gzip/getopt.c
@@ -1,3 +1,4 @@
+/* $FreeBSD$ */
/* Getopt for GNU.
NOTE: getopt is now part of the C library, so if you don't know what
"Keep this file name-space clean" means, talk to roland@gnu.ai.mit.edu
@@ -172,7 +173,7 @@ static enum
#if __STDC__ || defined(PROTO)
extern char *getenv(const char *name);
extern int strcmp (const char *s1, const char *s2);
-extern int strncmp(const char *s1, const char *s2, int n);
+extern int strncmp(const char *s1, const char *s2, size_t n);
static int my_strlen(const char *s);
static char *my_index (const char *str, int chr);
OpenPOWER on IntegriCloud