From 73799397ba77fbb9345cd4cb2bf5e7fc866dd0c5 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 10 Nov 2021 15:06:25 +0000 Subject: remove a pointless call of setlocale(3); patch from Jan Stary ; OK martijn@ --- usr.bin/who/who.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'usr.bin') 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 #include #include -#include 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"); -- cgit v1.2.3