summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-05-24 22:56:57 -0500
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-05-24 22:56:57 -0500
commit7bc239af5ee1313724117dd43d022c6b52331250 (patch)
tree975aecb08029828ba9f0011dada47d665872174a /bin
parentba1a8e3d1da08e05567ee6f83288cc5a993976f7 (diff)
downloaduserland-7bc239af5ee1313724117dd43d022c6b52331250.tar.gz
userland-7bc239af5ee1313724117dd43d022c6b52331250.tar.bz2
userland-7bc239af5ee1313724117dd43d022c6b52331250.tar.xz
userland-7bc239af5ee1313724117dd43d022c6b52331250.zip
bin/pwd: make buildable with libbsd
Diffstat (limited to 'bin')
-rw-r--r--bin/pwd/pwd.c19
1 files 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 <sys/cdefs.h>
-#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 <sys/param.h>
#include <sys/stat.h>
#include <sys/types.h>
@@ -52,11 +38,12 @@ __RCSID("$NetBSD: pwd.c,v 1.22 2011/08/29 14:51:19 joerg Exp $");
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
+#include <bsd/stdlib.h>
#include <string.h>
#include <unistd.h>
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':