summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/ln/ln.c23
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,