From: cohrs Date: Mon, 6 Oct 2003 02:55:55 +0000 (+0000) Subject: message history followup X-Git-Tag: MOVE2GIT~1728 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c24966fe29012a71a54f96605e433bd74510204;p=nethack message history followup Add a couple missing prototypes removed an unused variable --- diff --git a/src/restore.c b/src/restore.c index 861c40c07..0e0b60821 100644 --- a/src/restore.c +++ b/src/restore.c @@ -29,6 +29,7 @@ STATIC_DCL void FDECL(ghostfruit, (struct obj *)); STATIC_DCL boolean FDECL(restgamestate, (int, unsigned int *, unsigned int *)); STATIC_DCL void FDECL(restlevelstate, (unsigned int, unsigned int)); STATIC_DCL int FDECL(restlevelfile, (int,XCHAR_P)); +STATIC_OVL void FDECL(restore_msghistory, (int)); STATIC_DCL void FDECL(reset_oattached_mids, (BOOLEAN_P)); #ifndef GOLDOBJ STATIC_DCL struct obj *FDECL(gold_in, (struct obj *)); @@ -911,10 +912,11 @@ boolean ghostly; clear_id_mapping(); } +STATIC_OVL void restore_msghistory(fd) register int fd; { - int msgsize, k, msgcount = 0; + int msgsize, msgcount = 0; char msg[BUFSZ]; while(1) { diff --git a/src/save.c b/src/save.c index 15a7f21e5..8b91cffb4 100644 --- a/src/save.c +++ b/src/save.c @@ -31,6 +31,7 @@ STATIC_DCL void FDECL(saveobjchn, (int,struct obj *,int)); STATIC_DCL void FDECL(savemonchn, (int,struct monst *,int)); STATIC_DCL void FDECL(savetrapchn, (int,struct trap *,int)); STATIC_DCL void FDECL(savegamestate, (int,int)); +STATIC_OVL void FDECL(save_msghistory, (int,int)); #ifdef MFLOPPY STATIC_DCL void FDECL(savelev0, (int,XCHAR_P,int)); STATIC_DCL boolean NDECL(swapout_oldest); @@ -985,6 +986,7 @@ register int fd, mode; ffruit = 0; } +STATIC_OVL void save_msghistory(fd, mode) register int fd, mode; {