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

The usual deal for a curses game with the possibility of saving a game:

pledge "stdio rpath wpath cpath tty"
This commit is contained in:
tb 2015-11-30 08:49:06 +00:00
parent 81b3eda1fe
commit 2751bcea94

View File

@ -1,4 +1,4 @@
/* $OpenBSD: mille.c,v 1.21 2015/11/04 21:22:10 tedu Exp $ */
/* $OpenBSD: mille.c,v 1.22 2015/11/30 08:49:06 tb Exp $ */
/* $NetBSD: mille.c,v 1.4 1995/03/24 05:01:48 cgd Exp $ */
/*
@ -45,6 +45,9 @@ main(ac, av)
bool restore;
extern char *__progname;
if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
err(1, "pledge");
#ifdef DEBUG
if (strcmp(av[0], "a.out") == 0) {
outf = fopen("q", "w");