From 7bc239af5ee1313724117dd43d022c6b52331250 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Fri, 24 May 2019 22:56:57 -0500 Subject: bin/pwd: make buildable with libbsd --- bin/pwd/pwd.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/bin/pwd/pwd.c b/bin/pwd/pwd.c index 27888eb..8c2c3dc 100644 --- a/bin/pwd/pwd.c +++ b/bin/pwd/pwd.c @@ -29,20 +29,6 @@ * SUCH DAMAGE. */ -#include -#ifndef lint -__COPYRIGHT("@(#) Copyright (c) 1991, 1993, 1994\ - The Regents of the University of California. All rights reserved."); -#endif /* not lint */ - -#ifndef lint -#if 0 -static char sccsid[] = "@(#)pwd.c 8.3 (Berkeley) 4/1/94"; -#else -__RCSID("$NetBSD: pwd.c,v 1.22 2011/08/29 14:51:19 joerg Exp $"); -#endif -#endif /* not lint */ - #include #include #include @@ -52,11 +38,12 @@ __RCSID("$NetBSD: pwd.c,v 1.22 2011/08/29 14:51:19 joerg Exp $"); #include #include #include +#include #include #include static char *getcwd_logical(void); -__dead static void usage(void); +static void usage(void); /* * Note that EEE Std 1003.1, 2003 requires that the default be -L. @@ -75,7 +62,7 @@ main(int argc, char *argv[]) setprogname(argv[0]); (void)setlocale(LC_ALL, ""); - lFlag = 0; + lFlag = 1; while ((ch = getopt(argc, argv, "LP")) != -1) { switch (ch) { case 'L': -- cgit v1.2.3-60-g2f50