diff options
author | hubertf <hubertf@NetBSD.org> | 1998-11-10 13:43:30 +0000 |
---|---|---|
committer | hubertf <hubertf@NetBSD.org> | 1998-11-10 13:43:30 +0000 |
commit | 64e97658ba659a3c374b975c3262f10910904254 (patch) | |
tree | 2dcdc88c24142665bc69163b5c841365a606a872 /atc/main.c | |
parent | 7d7fd1d69fceb79900e4d597c5e2bdbad06d6cc0 (diff) | |
download | bsdgames-darwin-64e97658ba659a3c374b975c3262f10910904254.tar.gz bsdgames-darwin-64e97658ba659a3c374b975c3262f10910904254.tar.zst bsdgames-darwin-64e97658ba659a3c374b975c3262f10910904254.zip |
constify, per PR 6150 by Joseph Myers <jsm28@cam.ac.uk>
Diffstat (limited to 'atc/main.c')
-rw-r--r-- | atc/main.c | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.7 1998/09/13 15:20:31 hubertf Exp $ */ +/* $NetBSD: main.c,v 1.8 1998/11/10 13:43:31 hubertf Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -55,7 +55,7 @@ __COPYRIGHT("@(#) Copyright (c) 1990, 1993\n\ #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: main.c,v 1.7 1998/09/13 15:20:31 hubertf Exp $"); +__RCSID("$NetBSD: main.c,v 1.8 1998/11/10 13:43:31 hubertf Exp $"); #endif #endif /* not lint */ @@ -71,7 +71,7 @@ main(ac, av) int seed; int f_usage = 0, f_list = 0, f_showscore = 0; int f_printpath = 0; - char *file = NULL; + const char *file = NULL; char *name, *ptr; struct sigaction sa; #ifdef BSD @@ -222,7 +222,7 @@ main(ac, av) int read_file(s) - char *s; + const char *s; { extern FILE *yyin; int retval; @@ -242,7 +242,7 @@ read_file(s) return (0); } -char * +const char * default_game() { FILE *fp; @@ -267,13 +267,14 @@ default_game() return (file); } -char * +const char * okay_game(s) - char *s; + const char *s; { FILE *fp; static char file[256]; - char *ret = NULL, line[256], games[256]; + const char *ret = NULL; + char line[256], games[256]; strcpy(games, _PATH_GAMES); strcat(games, GAMES); |