Fix an assortment of compiler warnings.
A few potential bugs were removed in the process. Much code cleanup remains to be done.
This commit is contained in:
parent
de95b19cee
commit
7d459d7d36
47 changed files with 608 additions and 591 deletions
|
|
@ -237,7 +237,7 @@ void writelog(int amount, int flags, int monst)
|
|||
return;
|
||||
}
|
||||
#endif
|
||||
sprintf(logmessage, "%d %d %.80s %d ", time(NULL), amount, whoami,
|
||||
sprintf(logmessage, "%ld %d %.80s %d ", time(NULL), amount, whoami,
|
||||
pstats.s_lvl);
|
||||
if (flags == 0) /* dead */
|
||||
{
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ restore(const char *file)
|
|||
if (strcmp(file, "-r") == 0)
|
||||
file = file_name;
|
||||
|
||||
md_tstphold();
|
||||
md_tstphold();
|
||||
|
||||
if ((inf = fopen(file,"r")) == NULL)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue