analysis lint for s*.c
shk.c was dealt with previously.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 save.c $NHDT-Date: 1706079844 2024/01/24 07:04:04 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.214 $ */
|
||||
/* NetHack 3.7 save.c $NHDT-Date: 1737610109 2025/01/22 21:28:29 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.232 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Michael Allison, 2009. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -17,7 +17,7 @@ int dotcnt, dotrow; /* also used in restore */
|
||||
#endif
|
||||
|
||||
staticfn void savelevchn(NHFILE *);
|
||||
staticfn void savelevl(NHFILE *,boolean);
|
||||
staticfn void savelevl(NHFILE *, boolean);
|
||||
staticfn void savedamage(NHFILE *);
|
||||
staticfn void save_bubbles(NHFILE *, xint8);
|
||||
staticfn void save_stairs(NHFILE *);
|
||||
@@ -702,7 +702,7 @@ savedamage(NHFILE *nhfp)
|
||||
if (nhfp->structlevel)
|
||||
bwrite(nhfp->fd, (genericptr_t) &xl, sizeof xl);
|
||||
}
|
||||
while (xl--) {
|
||||
while (damageptr) {
|
||||
if (perform_bwrite(nhfp)) {
|
||||
if (nhfp->structlevel)
|
||||
bwrite(nhfp->fd, (genericptr_t) damageptr, sizeof *damageptr);
|
||||
|
||||
Reference in New Issue
Block a user