summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-09-22 15:37:06 +0000
committertedu <tedu@openbsd.org>2015-09-22 15:37:06 +0000
commit0cb37296597a313449d387ee70ac0dace04b598f (patch)
tree105fc12c8051c566ca170d0623712c6ed54e61f7
parenttypos: mastter -> master, mandoatory -> mandatory. (diff)
downloadwireguard-openbsd-0cb37296597a313449d387ee70ac0dace04b598f.tar.xz
wireguard-openbsd-0cb37296597a313449d387ee70ac0dace04b598f.zip
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)