From 0c7dae7936756e16b5ef3ec71172ae4e50fb20ec Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 22 Sep 2015 15:37:07 +0000 Subject: sleep doesn't benefit from setting locale. we always want to parse numbers as our forefathers did, and it doesn't print any error messages in need of translation. ok stsp --- bin/sleep/sleep.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/sleep/sleep.c b/bin/sleep/sleep.c index b156a94e583..4789aa5cf88 100644 --- a/bin/sleep/sleep.c +++ b/bin/sleep/sleep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sleep.c,v 1.20 2013/11/21 15:54:46 deraadt Exp $ */ +/* $OpenBSD: sleep.c,v 1.21 2015/09/22 15:37:06 tedu Exp $ */ /* $NetBSD: sleep.c,v 1.8 1995/03/21 09:11:11 cgd Exp $ */ /* @@ -32,7 +32,6 @@ #include #include -#include #include #include #include @@ -54,8 +53,6 @@ main(int argc, char *argv[]) struct timespec rqtp; int i; - setlocale(LC_ALL, ""); - signal(SIGALRM, alarmh); while ((ch = getopt(argc, argv, "")) != -1) -- cgit v1.2.3