X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=saveresume.c;h=db1153b3c793bef7bb8bddc35ba55c236c98c5bb;hb=25230068fe3afb9d1faa9c606413784294700cef;hp=c53ee4950ff9942868ec2ad4517497739030a421;hpb=5929a68b88ee9a244f5b12d08ead6a6692deb32d;p=open-adventure.git diff --git a/saveresume.c b/saveresume.c index c53ee49..db1153b 100644 --- a/saveresume.c +++ b/saveresume.c @@ -4,9 +4,9 @@ * (ESR) This replaces a bunch of particularly nasty FORTRAN-derived code; * see the history.adoc file in the source distribution for discussion. * - * Copyright (c) 1977, 2005 by Will Crowther and Don Woods - * Copyright (c) 2017 by Eric S. Raymond - * SPDX-License-Identifier: BSD-2-clause + * SPDX-FileCopyrightText: 1977, 2005 by Will Crowther and Don Woods + * SPDX-FileCopyrightText: 2017 by Eric S. Raymond + * SPDX-License-Identifier: BSD-2-Clause */ #include @@ -57,7 +57,7 @@ int savefile(FILE *fp, int32_t version) /* Suspend and resume */ -char *strip(char *name) +static char *strip(char *name) { // Trim leading whitespace while(isspace((unsigned char)*name)) @@ -83,7 +83,7 @@ int suspend(void) * If ADVENT_NOSAVE is defined, gripe instead. */ #if defined ADVENT_NOSAVE || defined ADVENT_AUTOSAVE - rspeak(SAVERESUME_DISABLED) + rspeak(SAVERESUME_DISABLED); return GO_TOP; #endif FILE *fp = NULL; @@ -118,7 +118,7 @@ int resume(void) * If ADVENT_NOSAVE is defined, gripe instead. */ #if defined ADVENT_NOSAVE || defined ADVENT_AUTOSAVE - rspeak(SAVERESUME_DISABLED) + rspeak(SAVERESUME_DISABLED); return GO_TOP; #endif FILE *fp = NULL; @@ -172,7 +172,7 @@ int restore(FILE* fp) bool is_valid(struct game_t valgame) { /* Save files can be roughly grouped into three groups: - * With valid, reacheable state, with valid, but unreachable + * With valid, reachable state, with valid, but unreachable * state and with invalid state. We check that state is * valid: no states are outside minimal or maximal value */