summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-05-31 09:05:58 -0500
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-05-31 09:05:58 -0500
commitc2fac37d8af9668903e323fbd1a28cc6bb31a07b (patch)
tree4e446862cc1af37ea83f480fcb89243379e790cf /usr.bin
parentd8d29173662d45e84f14f75d8cb98f0735f7ae1a (diff)
downloaduserland-c2fac37d8af9668903e323fbd1a28cc6bb31a07b.tar.gz
userland-c2fac37d8af9668903e323fbd1a28cc6bb31a07b.tar.bz2
userland-c2fac37d8af9668903e323fbd1a28cc6bb31a07b.tar.xz
userland-c2fac37d8af9668903e323fbd1a28cc6bb31a07b.zip
usr.bin/fold: make buildable with libbsd
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/fold/fold.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/usr.bin/fold/fold.c b/usr.bin/fold/fold.c
index 52ecc3d..b02caa6 100644
--- a/usr.bin/fold/fold.c
+++ b/usr.bin/fold/fold.c
@@ -32,23 +32,11 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-#ifndef lint
-__COPYRIGHT("@(#) Copyright (c) 1990, 1993\
- The Regents of the University of California. All rights reserved.");
-#endif /* not lint */
-
-#ifndef lint
-#if 0
-static char sccsid[] = "@(#)fold.c 8.1 (Berkeley) 6/6/93";
-#endif
-__RCSID("$NetBSD: fold.c,v 1.17 2011/09/04 20:24:59 joerg Exp $");
-#endif /* not lint */
-
#include <limits.h>
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
+#include <bsd/stdlib.h>
#include <unistd.h>
#include <wchar.h>
#include <err.h>
@@ -57,7 +45,7 @@ __RCSID("$NetBSD: fold.c,v 1.17 2011/09/04 20:24:59 joerg Exp $");
static void fold(int);
static int new_column_position(int, wint_t);
-__dead static void usage(void);
+static void usage(void) __attribute__((noreturn));
static int count_bytes = 0;
static int split_words = 0;