diff options
-rw-r--r-- | monop/execute.c | 6 | ||||
-rw-r--r-- | monop/monop.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/monop/execute.c b/monop/execute.c index 40f2b776..3e9aa0a3 100644 --- a/monop/execute.c +++ b/monop/execute.c @@ -1,4 +1,4 @@ -/* $NetBSD: execute.c,v 1.4 1997/10/12 17:45:09 christos Exp $ */ +/* $NetBSD: execute.c,v 1.5 1998/09/11 13:54:08 hubertf Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)execute.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: execute.c,v 1.4 1997/10/12 17:45:09 christos Exp $"); +__RCSID("$NetBSD: execute.c,v 1.5 1998/09/11 13:54:08 hubertf Exp $"); #endif #endif /* not lint */ @@ -249,7 +249,7 @@ char *file; char *start, *end; STAT sbuf; - if ((inf=open(file, 0)) < 0) { + if ((inf=open(file, O_RDONLY)) < 0) { perror(file); return FALSE; } diff --git a/monop/monop.c b/monop/monop.c index 4e77db29..53fd35b8 100644 --- a/monop/monop.c +++ b/monop/monop.c @@ -1,4 +1,4 @@ -/* $NetBSD: monop.c,v 1.4 1997/10/12 17:45:16 christos Exp $ */ +/* $NetBSD: monop.c,v 1.5 1998/09/11 13:54:08 hubertf Exp $ */ /* * Copyright (c) 1980, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)monop.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: monop.c,v 1.4 1997/10/12 17:45:16 christos Exp $"); +__RCSID("$NetBSD: monop.c,v 1.5 1998/09/11 13:54:08 hubertf Exp $"); #endif #endif /* not lint */ @@ -80,7 +80,7 @@ char *av[]; { } num_luck = sizeof lucky_mes / sizeof (char *); init_decks(); - signal(2, do_quit); + signal(SIGINT, do_quit); for (;;) { printf("\n%s (%d) (cash $%d) on %s\n", cur_p->name, player + 1, cur_p->money, board[cur_p->loc].name); |