diff options
author | peter <peter@FreeBSD.org> | 2002-05-01 06:49:43 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-05-01 06:49:43 +0000 |
commit | c6d2a0b3425a431d83b0c72853864e1c7ee566c4 (patch) | |
tree | b08758c4e14a66a51c343e2dd76bb0c2b6bb0419 /usr.sbin/nfsd/nfsd.c | |
parent | 6059c4954f62f6da3f3f461b41524c9c8038f609 (diff) | |
download | FreeBSD-src-c6d2a0b3425a431d83b0c72853864e1c7ee566c4.zip FreeBSD-src-c6d2a0b3425a431d83b0c72853864e1c7ee566c4.tar.gz |
Make this compile and not segfault on ia64. ptr = strdup("foo"); is
fatal if the declaration of strdup() isn't in scope. The upper 32 bits
of the pointer are lost since it defaults to returning "int". Fix some
warnings while here, including trying to make gcc-3.1 happy.
Diffstat (limited to 'usr.sbin/nfsd/nfsd.c')
-rw-r--r-- | usr.sbin/nfsd/nfsd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/nfsd/nfsd.c b/usr.sbin/nfsd/nfsd.c index 86e145c..3cc56d8 100644 --- a/usr.sbin/nfsd/nfsd.c +++ b/usr.sbin/nfsd/nfsd.c @@ -38,7 +38,7 @@ static const char copyright[] = "@(#) Copyright (c) 1989, 1993, 1994\n\ The Regents of the University of California. All rights reserved.\n"; -#endif not lint +#endif /* not lint */ #ifndef lint #if 0 @@ -46,7 +46,7 @@ static char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95"; #endif static const char rcsid[] = "$FreeBSD$"; -#endif not lint +#endif /* not lint */ #include <sys/param.h> #include <sys/syslog.h> @@ -69,7 +69,7 @@ static const char rcsid[] = #include <signal.h> #include <stdio.h> #include <stdlib.h> -#include <strings.h> +#include <string.h> #include <unistd.h> #include <netdb.h> @@ -741,6 +741,7 @@ setbindhost(struct addrinfo **ai, const char *bindhost, struct addrinfo hints) } break; default: + break; } } |