summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-09-22 15:37:07 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-09-22 15:37:07 +0000
commit0c7dae7936756e16b5ef3ec71172ae4e50fb20ec (patch)
treee3b8d5b3dcf66b3d3591c4932ac892d20971e97f
parent40aeb85d31bd9053c3ca27a65559ac5225229fde (diff)
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
-rw-r--r--bin/sleep/sleep.c5
1 files changed, 1 insertions, 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 <ctype.h>
#include <errno.h>
-#include <locale.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
@@ -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)