lobase

Linux port of OpenBSDs userland.
Log | Files | Refs | README

commit 3fdf22a3f53e6741799faa6af3fc9a13235d19f5
parent 8bfe450d804d66561174ac8d84315be8d086ea24
Author: Duncaen <mail@duncano.de>
Date:   Wed, 24 May 2017 03:13:04 +0200

bin/rmdir: update to OPENBSD_6_1

Diffstat:
bin/rmdir/rmdir.c | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git 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);