diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2021-11-10 15:06:25 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2021-11-10 15:06:25 +0000 |
commit | 73799397ba77fbb9345cd4cb2bf5e7fc866dd0c5 (patch) | |
tree | cf5059353581a8462bdf6f62d7219b2697cac769 /usr.bin | |
parent | 7ec38a64f68a733ee7ea09861b08abe2b8fbee4a (diff) |
remove a pointless call of setlocale(3);
patch from Jan Stary <hans at stare dot cz>;
OK martijn@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/who/who.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c index c1582a0675e..13e911eccd0 100644 --- a/usr.bin/who/who.c +++ b/usr.bin/who/who.c @@ -1,4 +1,4 @@ -/* $OpenBSD: who.c,v 1.30 2021/07/12 15:09:20 beck Exp $ */ +/* $OpenBSD: who.c,v 1.31 2021/11/10 15:06:24 schwarze Exp $ */ /* $NetBSD: who.c,v 1.4 1994/12/07 04:28:49 jtc Exp $ */ /* @@ -44,7 +44,6 @@ #include <unistd.h> #include <time.h> #include <err.h> -#include <locale.h> void output(struct utmp *); void output_labels(void); @@ -72,8 +71,6 @@ main(int argc, char *argv[]) char *t; int c; - setlocale(LC_ALL, ""); - if (pledge("stdio unveil rpath getpw", NULL) == -1) err(1, "pledge"); |