summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-10-20 10:24:41 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-10-20 10:24:41 +0000
commit03962d95a32d93790cc432cce08b684991767c45 (patch)
treeeb8c2ce22fb34e4a9d430d7d80bfa53bcf674e87
parent6aa9f5046fa7f16242b46a90c91dc99d870fd88f (diff)
delete useless call to setlocale(3);
patch from Jan Stary <hans at stare dot cz>; OK millert@ natano@
-rw-r--r--sbin/mknod/mknod.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sbin/mknod/mknod.c b/sbin/mknod/mknod.c
index 884dd6fa373..f64b5edb252 100644
--- a/sbin/mknod/mknod.c
+++ b/sbin/mknod/mknod.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mknod.c,v 1.29 2016/03/07 19:16:06 tb Exp $ */
+/* $OpenBSD: mknod.c,v 1.30 2016/10/20 10:24:40 schwarze Exp $ */
/* $NetBSD: mknod.c,v 1.8 1995/08/11 00:08:18 jtc Exp $ */
/*
@@ -25,7 +25,6 @@
#include <err.h>
#include <errno.h>
#include <limits.h>
-#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -55,8 +54,6 @@ main(int argc, char *argv[])
void *set;
int ch;
- setlocale(LC_ALL, "");
-
if (pledge("stdio dpath", NULL) == -1)
err(1, "pledge");