1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

primes only needs pledge "stdio".

This commit is contained in:
tb 2015-11-30 08:53:53 +00:00
parent 2751bcea94
commit 0a5000655c

View File

@ -1,4 +1,4 @@
/* $OpenBSD: primes.c,v 1.17 2015/10/24 17:34:16 mmcc Exp $ */
/* $OpenBSD: primes.c,v 1.18 2015/11/30 08:53:53 tb Exp $ */
/* $NetBSD: primes.c,v 1.5 1995/04/24 12:24:47 cgd Exp $ */
/*
@ -103,6 +103,9 @@ main(int argc, char *argv[])
int ch;
char *p;
if (pledge("stdio", NULL) == -1)
err(1, "pledge");
while ((ch = getopt(argc, argv, "")) != -1) {
switch (ch) {
case '?':