From 625f8fc26efb06431e5cdfa05f274bb151022b66 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Thu, 4 Jul 2019 00:44:27 -0500 Subject: bin/ln: make buildable with libbsd --- bin/ln/ln.c | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'bin') 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 -#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 #include @@ -55,7 +38,7 @@ __RCSID("$NetBSD: ln.c,v 1.40 2018/08/26 23:01:06 sevan Exp $"); #include #include #include -#include +#include #include #include @@ -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, -- cgit v1.2.3-60-g2f50