summaryrefslogtreecommitdiff
path: root/games/hack/hack.bones.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-08-16 17:00:18 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-08-16 17:00:18 +0000
commitf614ad9ddbe518d66af1d345c18ac6c1d4b3ec72 (patch)
tree6f9ff210ef26a86ab8a226b9f1192c11e01eb114 /games/hack/hack.bones.c
parent7f4a7535eb888a8b95b0a6c252954d2464a59753 (diff)
use O_* defines for open(2) flags and include fcntl.h
Diffstat (limited to 'games/hack/hack.bones.c')
-rw-r--r--games/hack/hack.bones.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/hack/hack.bones.c b/games/hack/hack.bones.c
index b495294c94b..0685a3faa82 100644
--- a/games/hack/hack.bones.c
+++ b/games/hack/hack.bones.c
@@ -24,7 +24,7 @@ register struct monst *mtmp;
if(!rn2(1 + dlevel/2)) return; /* not so many ghosts on low levels */
bones[6] = '0' + (dlevel/10);
bones[7] = '0' + (dlevel%10);
- if((fd = open(bones,0)) >= 0){
+ if((fd = open(bones, O_RDONLY)) >= 0){
(void) close(fd);
return;
}
@@ -82,7 +82,7 @@ register fd,x,y,ok;
if(rn2(3)) return(0); /* only once in three times do we find bones */
bones[6] = '0' + dlevel/10;
bones[7] = '0' + dlevel%10;
- if((fd = open(bones, 0)) < 0) return(0);
+ if((fd = open(bones, O_RDONLY)) < 0) return(0);
if((ok = uptodate(fd)) != 0){
getlev(fd, 0, dlevel);
for(x = 0; x < COLNO; x++) for(y = 0; y < ROWNO; y++)