aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-05-24 03:13:04 +0200
committerDuncaen <mail@duncano.de>2017-05-24 03:20:11 +0200
commit3fdf22a3f53e6741799faa6af3fc9a13235d19f5 (patch)
treec82e044675bfa4c98a83a80422c253e7e975ec9d
parent8bfe450d804d66561174ac8d84315be8d086ea24 (diff)
downloadlobase-3fdf22a3f53e6741799faa6af3fc9a13235d19f5.tar.gz
bin/rmdir: update to OPENBSD_6_1
-rw-r--r--bin/rmdir/rmdir.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/rmdir/rmdir.c b/bin/rmdir/rmdir.c
index 6aaa1e4..9a08fcc 100644
--- a/bin/rmdir/rmdir.c
+++ b/bin/rmdir/rmdir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rmdir.c,v 1.12 2016/06/03 23:22:20 tedu Exp $ */
+/* $OpenBSD: rmdir.c,v 1.13 2016/10/19 18:20:26 schwarze Exp $ */
/* $NetBSD: rmdir.c,v 1.13 1995/03/21 09:08:31 cgd Exp $ */
/*-
@@ -35,13 +35,12 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <locale.h>
#include <unistd.h>
extern char *__progname;
int rm_path(char *);
-void usage(void);
+static void __dead usage(void);
int
main(int argc, char *argv[])
@@ -49,8 +48,6 @@ main(int argc, char *argv[])
int ch, errors;
int pflag;
- setlocale(LC_ALL, "");
-
if (pledge("stdio cpath", NULL) == -1)
err(1, "pledge");
@@ -108,7 +105,7 @@ rm_path(char *path)
return (0);
}
-void
+static void __dead
usage(void)
{
fprintf(stderr, "usage: %s [-p] directory ...\n", __progname);