Use #include <string.h> rather than <strings.h> so that the strdup()

prototype gets brought into scope.  This is a big deal for 64 bit
systems where the default return value of 'int' is != pointer.

Reviewed by:	bp
This commit is contained in:
Peter Wemm 2003-07-26 04:02:22 +00:00
parent 0c1a133f56
commit 26c4b7deaa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118041

View File

@ -30,6 +30,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: rap.c,v 1.8 2001/02/24 15:56:05 bp Exp $ * $Id: rap.c,v 1.8 2001/02/24 15:56:05 bp Exp $
* $FreeBSD$
* *
* This is very simple implementation of RAP protocol. * This is very simple implementation of RAP protocol.
*/ */
@ -40,7 +41,7 @@
#include <err.h> #include <err.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <strings.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <sysexits.h> #include <sysexits.h>