diff options
author | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-06-20 01:54:36 -0500 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-06-20 01:54:36 -0500 |
commit | 56269d7b4aa95f6a33df35d748db1e9b0c0f45a9 (patch) | |
tree | 959f986987e035b2032eed1eaadcf008a4ad07b5 | |
parent | b3049d9c200fc8bbb91d76b8ecdae7cc7188b3c2 (diff) | |
download | userland-56269d7b4aa95f6a33df35d748db1e9b0c0f45a9.tar.gz userland-56269d7b4aa95f6a33df35d748db1e9b0c0f45a9.tar.bz2 userland-56269d7b4aa95f6a33df35d748db1e9b0c0f45a9.tar.xz userland-56269d7b4aa95f6a33df35d748db1e9b0c0f45a9.zip |
usr.bin/uniq: make buildable with libbsd
-rw-r--r-- | usr.bin/uniq/uniq.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/usr.bin/uniq/uniq.c b/usr.bin/uniq/uniq.c index ded7037..af71a56 100644 --- a/usr.bin/uniq/uniq.c +++ b/usr.bin/uniq/uniq.c @@ -32,24 +32,11 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> -#ifndef lint -__COPYRIGHT("@(#) Copyright (c) 1989, 1993\ - The Regents of the University of California. All rights reserved."); -#endif /* not lint */ - -#ifndef lint -#if 0 -static char sccsid[] = "@(#)uniq.c 8.3 (Berkeley) 5/4/95"; -#endif -__RCSID("$NetBSD: uniq.c,v 1.20 2016/10/16 06:17:51 abhinav Exp $"); -#endif /* not lint */ - #include <err.h> #include <errno.h> #include <stdio.h> #include <ctype.h> -#include <stdlib.h> +#include <bsd/stdlib.h> #include <string.h> #include <unistd.h> @@ -60,7 +47,7 @@ static FILE *file(const char *, const char *); static void show(FILE *, const char *); static const char *skip(const char *, size_t *); static void obsolete(char *[]); -static void usage(void) __dead; +static void usage(void); int main (int argc, char *argv[]) |