summaryrefslogtreecommitdiffstats
path: root/usr.bin/getopt/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/getopt/getopt.c')
-rw-r--r--usr.bin/getopt/getopt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/getopt/getopt.c b/usr.bin/getopt/getopt.c
index b0781e62058..ea971bbf64a 100644
--- a/usr.bin/getopt/getopt.c
+++ b/usr.bin/getopt/getopt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getopt.c,v 1.9 2015/10/07 06:39:16 deraadt Exp $ */
+/* $OpenBSD: getopt.c,v 1.10 2015/10/09 01:37:07 deraadt Exp $ */
/*
* This material, written by Henry Spencer, was released by him
@@ -18,8 +18,8 @@ main(int argc, char *argv[])
int c;
int status = 0;
- if (tame("stdio", NULL) == -1)
- err(1, "tame");
+ if (pledge("stdio", NULL) == -1)
+ err(1, "pledge");
optind = 2; /* Past the program name and the option letters. */
while ((c = getopt(argc, argv, argv[1])) != -1)