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:
parent
0cffd21856
commit
b39888292e
@ -30,6 +30,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: rap.c,v 1.8 2001/02/24 15:56:05 bp Exp $
|
||||
* $FreeBSD$
|
||||
*
|
||||
* This is very simple implementation of RAP protocol.
|
||||
*/
|
||||
@ -40,7 +41,7 @@
|
||||
#include <err.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <strings.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <sysexits.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user