summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-06-02 05:46:15 -0500
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-06-02 05:46:15 -0500
commit5d64c714cea523e5ad539a44b17944abd1847c3d (patch)
treefdde8c7abb2bece46eaed287b091d598b7bff6f1 /usr.bin
parent18481510d9e6e3a6fec5e466d179bffe60d3acf8 (diff)
downloaduserland-5d64c714cea523e5ad539a44b17944abd1847c3d.tar.gz
userland-5d64c714cea523e5ad539a44b17944abd1847c3d.tar.bz2
userland-5d64c714cea523e5ad539a44b17944abd1847c3d.tar.xz
userland-5d64c714cea523e5ad539a44b17944abd1847c3d.zip
usr.bin/head: make buildable with libbsd
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/head/head.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/usr.bin/head/head.c b/usr.bin/head/head.c
index 1d24d48..664c3bb 100644
--- a/usr.bin/head/head.c
+++ b/usr.bin/head/head.c
@@ -29,20 +29,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-#ifndef lint
-__COPYRIGHT("@(#) Copyright (c) 1980, 1987, 1992, 1993\
- The Regents of the University of California. All rights reserved.");
-#endif /* not lint */
-
-#ifndef lint
-#if 0
-static char sccsid[] = "@(#)head.c 8.2 (Berkeley) 5/4/95";
-#else
-__RCSID("$NetBSD: head.c,v 1.24 2016/05/12 01:56:44 nonaka Exp $");
-#endif
-#endif /* not lint */
-
#include <sys/types.h>
#include <ctype.h>
@@ -53,6 +39,7 @@ __RCSID("$NetBSD: head.c,v 1.24 2016/05/12 01:56:44 nonaka Exp $");
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
+#include <bsd/stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -64,7 +51,7 @@ __RCSID("$NetBSD: head.c,v 1.24 2016/05/12 01:56:44 nonaka Exp $");
static void head(FILE *, intmax_t, intmax_t);
static void obsolete(char *[]);
-__dead static void usage(void);
+static void usage(void);
int