summaryrefslogtreecommitdiffstats
path: root/usr.bin/paste
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-02-20 04:21:46 +0000
committerjb <jb@FreeBSD.org>1998-02-20 04:21:46 +0000
commit78fe14dd306d7197c2607622fbaa56f153c7734b (patch)
treec2f56d40f1ff9d93883539b3d183ad7500638841 /usr.bin/paste
parente20cca613dd8aad61ca9e1720a7b0caba404da94 (diff)
downloadFreeBSD-src-78fe14dd306d7197c2607622fbaa56f153c7734b.zip
FreeBSD-src-78fe14dd306d7197c2607622fbaa56f153c7734b.tar.gz
Add #include <stdlib.h> to get prototype for malloc(). Without this,
the compiler assumes an int return. On alpha this is enough to ruin ya day.
Diffstat (limited to 'usr.bin/paste')
-rw-r--r--usr.bin/paste/paste.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/paste/paste.c b/usr.bin/paste/paste.c
index 11584ca..7e14a56 100644
--- a/usr.bin/paste/paste.c
+++ b/usr.bin/paste/paste.c
@@ -45,7 +45,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)paste.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id: paste.c,v 1.3 1997/07/31 06:59:26 charnier Exp $";
+ "$Id: paste.c,v 1.4 1997/08/05 03:40:04 asami Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -53,6 +53,7 @@ static const char rcsid[] =
#include <errno.h>
#include <limits.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
OpenPOWER on IntegriCloud