diff options
author | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-05-31 09:05:58 -0500 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-05-31 09:05:58 -0500 |
commit | c2fac37d8af9668903e323fbd1a28cc6bb31a07b (patch) | |
tree | 4e446862cc1af37ea83f480fcb89243379e790cf | |
parent | d8d29173662d45e84f14f75d8cb98f0735f7ae1a (diff) | |
download | userland-c2fac37d8af9668903e323fbd1a28cc6bb31a07b.tar.gz userland-c2fac37d8af9668903e323fbd1a28cc6bb31a07b.tar.bz2 userland-c2fac37d8af9668903e323fbd1a28cc6bb31a07b.tar.xz userland-c2fac37d8af9668903e323fbd1a28cc6bb31a07b.zip |
usr.bin/fold: make buildable with libbsd
-rw-r--r-- | usr.bin/fold/fold.c | 16 |
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; |