]> granicus.if.org Git - nethack/commitdiff
message history followup
authorcohrs <cohrs>
Mon, 6 Oct 2003 02:55:55 +0000 (02:55 +0000)
committercohrs <cohrs>
Mon, 6 Oct 2003 02:55:55 +0000 (02:55 +0000)
Add a couple missing prototypes
removed an unused variable

src/restore.c
src/save.c

index 861c40c07b9be4f6d28b361853dc9d0bcfec3fb2..0e0b608217ac349d9375757824729e57c1017364 100644 (file)
@@ -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) {
index 15a7f21e5a15667d315f6ced9ebaeade607f342f..8b91cffb475e3162cae0cd65001e0191ef31c328 100644 (file)
@@ -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;
 {