diff options
Diffstat (limited to 'backgammon/common_source/save.c')
-rw-r--r-- | backgammon/common_source/save.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/backgammon/common_source/save.c b/backgammon/common_source/save.c index be5def93..107dd8d2 100644 --- a/backgammon/common_source/save.c +++ b/backgammon/common_source/save.c @@ -1,4 +1,4 @@ -/* $NetBSD: save.c,v 1.7 1998/09/13 15:41:34 hubertf Exp $ */ +/* $NetBSD: save.c,v 1.8 1999/02/10 12:29:48 hubertf Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)save.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: save.c,v 1.7 1998/09/13 15:41:34 hubertf Exp $"); +__RCSID("$NetBSD: save.c,v 1.8 1999/02/10 12:29:48 hubertf Exp $"); #endif #endif /* not lint */ @@ -46,16 +46,16 @@ __RCSID("$NetBSD: save.c,v 1.7 1998/09/13 15:41:34 hubertf Exp $"); #include "back.h" -static char confirm[] = "Are you sure you want to leave now?"; -static char prompt[] = "Enter a file name: "; -static char exist1[] = "The file '"; -static char exist2[] = +static const char confirm[] = "Are you sure you want to leave now?"; +static const char prompt[] = "Enter a file name: "; +static const char exist1[] = "The file '"; +static const char exist2[] = "' already exists.\nAre you sure you want to use this file?"; -static char cantuse[] = "\nCan't use "; -static char saved[] = "This game has been saved on the file '"; -static char type[] = "'.\nType \"backgammon "; -static char rec[] = "\" to recover your game.\n\n"; -static char cantrec[] = "Can't recover file: "; +static const char cantuse[] = "\nCan't use "; +static const char saved[] = "This game has been saved on the file '"; +static const char type[] = "'.\nType \"backgammon "; +static const char rec[] = "\" to recover your game.\n\n"; +static const char cantrec[] = "Can't recover file: "; void save(n) @@ -150,7 +150,7 @@ save(n) void recover(s) - char *s; + const char *s; { int fdesc; @@ -173,9 +173,9 @@ recover(s) void norec(s) - char *s; + const char *s; { - char *c; + const char *c; tflag = 0; writel(cantrec); |