From: schwarze Date: Wed, 10 Nov 2021 15:06:24 +0000 (+0000) Subject: remove a pointless call of setlocale(3); X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d723fb820877added0f41a869af1fbdacd599973;p=openbsd remove a pointless call of setlocale(3); patch from Jan Stary ; OK martijn@ --- 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");