diff options
author | Peter Wemm <peter@FreeBSD.org> | 2003-10-26 04:10:50 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2003-10-26 04:10:50 +0000 |
commit | 10a498be8f1e08c83eb7dd5ea8f0f3240904d5bd (patch) | |
tree | 26a54379cc0742eb55ddd5b8879746f5fc5e6e16 /gnu | |
parent | 62537aaa1712773d70487e64a4017e4c02ae387c (diff) | |
download | src-10a498be8f1e08c83eb7dd5ea8f0f3240904d5bd.tar.gz src-10a498be8f1e08c83eb7dd5ea8f0f3240904d5bd.zip |
The third arg to strncmp() is size_t, not int. This causes a warning on
systems where size_t is long, not int.
Notes
Notes:
svn path=/head/; revision=121533
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 55fad84331a7..70729bbc419c 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); |