-/* $NetBSD: savelev.c,v 1.5 2008/01/28 05:38:54 dholland Exp $ */
+/* $NetBSD: savelev.c,v 1.7 2012/06/19 05:30:44 dholland Exp $ */
/* savelev.c Larn is copyrighted 1986 by Noah Morgan. */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: savelev.c,v 1.5 2008/01/28 05:38:54 dholland Exp $");
+__RCSID("$NetBSD: savelev.c,v 1.7 2012/06/19 05:30:44 dholland Exp $");
#endif /* not lint */
#include "header.h"
#include "extern.h"
* routine to save the present level into storage
*/
void
-savelevel()
+savelevel(void)
{
struct cel *pcel;
u_char *pitem, *pknow, *pmitem;
pcel->hitp = *phitp++;
pcel->item = *pitem++;
pcel->know = *pknow++;
- pcel++->iarg = *piarg++;
+ pcel->iarg = *piarg++;
+ pcel++;
}
}
* routine to restore a level from storage
*/
void
-getlevel()
+getlevel(void)
{
struct cel *pcel;
u_char *pitem, *pknow, *pmitem;
*phitp++ = pcel->hitp;
*pitem++ = pcel->item;
*pknow++ = pcel->know;
- *piarg++ = pcel++->iarg;
+ *piarg++ = pcel->iarg;
+ pcel++;
}
}