diff options
author | peter <peter@FreeBSD.org> | 2003-10-26 04:10:50 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-10-26 04:10:50 +0000 |
commit | b84f0fd155e49705a484772173cc8ccacb79032a (patch) | |
tree | 26a54379cc0742eb55ddd5b8879746f5fc5e6e16 /gnu | |
parent | 92983ccab19b2e63090924c93cb910e8d2f48bc7 (diff) | |
download | FreeBSD-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.c | 3 |
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); |