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:
parent
2751bcea94
commit
0a5000655c
@ -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 '?':
|
||||
|
Loading…
Reference in New Issue
Block a user