X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=saveresume.c;h=20b6344c1bfd2d93a107f6c973853f22d9efd211;hb=04eca720d9a5282b47f51c5d19910a094f3d1882;hp=6f570b9aab8a874fe4f0a3aad4b20468ef8ff4da;hpb=b3057f038bc990e216c1763f7de1f485892296d2;p=open-adventure.git diff --git a/saveresume.c b/saveresume.c index 6f570b9..20b6344 100644 --- a/saveresume.c +++ b/saveresume.c @@ -30,7 +30,7 @@ struct save_t { struct save_t save; /* Suspend and resume */ -int suspend(FILE *input) +int suspend(void) { /* Suspend. Offer to save things in a file, but charging * some points (so can't win by using saved games to retry @@ -44,7 +44,7 @@ int suspend(FILE *input) FILE *fp = NULL; RSPEAK(SUSPEND_WARNING); - if (!YES(input, THIS_ACCEPTABLE, OK_MAN, OK_MAN)) return GO_CLEAROBJ; + if (!YES(THIS_ACCEPTABLE, OK_MAN, OK_MAN)) return GO_CLEAROBJ; game.saved = game.saved + 5; while (fp == NULL) { @@ -71,7 +71,7 @@ int suspend(FILE *input) exit(0); } -int resume(FILE *input) +int resume(void) { /* Resume. Read a suspended game back from a file. * If ADVENT_NOSAVE is defined, do nothing instead. */ @@ -83,7 +83,7 @@ int resume(FILE *input) if (game.loc != 1 || game.abbrev[1] != 1) { RSPEAK(RESUME_ABANDON); - if (!YES(input, THIS_ACCEPTABLE, OK_MAN, OK_MAN)) return GO_CLEAROBJ; + if (!YES(THIS_ACCEPTABLE, OK_MAN, OK_MAN)) return GO_CLEAROBJ; } while (fp == NULL) { @@ -123,4 +123,4 @@ int restore(FILE* fp) return GO_TOP; } -/* end */ \ No newline at end of file +/* end */