From b84f0fd155e49705a484772173cc8ccacb79032a Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 26 Oct 2003 04:10:50 +0000 Subject: The third arg to strncmp() is size_t, not int. This causes a warning on systems where size_t is long, not int. --- gnu/usr.bin/gzip/getopt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gnu') 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); -- cgit v1.1