diff options
author | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-07-04 00:44:27 -0500 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-07-04 00:44:27 -0500 |
commit | 625f8fc26efb06431e5cdfa05f274bb151022b66 (patch) | |
tree | b03dd8e009d893ce067003ade005666007aab49a | |
parent | 7369e24c3897c0e4036830c5e15f88e56f7566c8 (diff) | |
download | userland-625f8fc26efb06431e5cdfa05f274bb151022b66.tar.gz userland-625f8fc26efb06431e5cdfa05f274bb151022b66.tar.bz2 userland-625f8fc26efb06431e5cdfa05f274bb151022b66.tar.xz userland-625f8fc26efb06431e5cdfa05f274bb151022b66.zip |
bin/ln: make buildable with libbsd
-rw-r--r-- | bin/ln/ln.c | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/bin/ln/ln.c b/bin/ln/ln.c index b057e39..d0a0311 100644 --- a/bin/ln/ln.c +++ b/bin/ln/ln.c @@ -29,23 +29,6 @@ * SUCH DAMAGE. */ -#if 0 -#ifndef lint -static char const copyright[] = -"@(#) Copyright (c) 1987, 1993, 1994\n\ - The Regents of the University of California. All rights reserved.\n"; -#endif /* not lint */ - -#ifndef lint -static char sccsid[] = "@(#)ln.c 8.2 (Berkeley) 3/31/94"; -#endif /* not lint */ -#endif -#include <sys/cdefs.h> -#ifdef __FBSDID -__FBSDID("$FreeBSD: head/bin/ln/ln.c 251261 2013-06-02 17:55:00Z eadler $"); -#endif -__RCSID("$NetBSD: ln.c,v 1.40 2018/08/26 23:01:06 sevan Exp $"); - #include <sys/param.h> #include <sys/stat.h> @@ -55,7 +38,7 @@ __RCSID("$NetBSD: ln.c,v 1.40 2018/08/26 23:01:06 sevan Exp $"); #include <libgen.h> #include <limits.h> #include <stdio.h> -#include <stdlib.h> +#include <bsd/stdlib.h> #include <string.h> #include <unistd.h> @@ -71,7 +54,7 @@ static int wflag; /* Warn if symlink target does not static char linkch; static int linkit(const char *, const char *, int); -static __dead void usage(void); +static void usage(void); int main(int argc, char *argv[]) @@ -354,7 +337,7 @@ linkit(const char *source, const char *target, int isdir) return (0); } -static __dead void +static void usage(void) { (void)fprintf(stderr, |