some livelog cleanup
The gamelog structure's type/flags field is 'long' but the corresponding livelog event type field and the argument passed to gamelog's logging were 'unsigned'. They take the same values and those values mean the same things so change them all to long. The actual livelog logging assumed that time_t is a long number of seconds, and was also using a boolean as an array index. Perform proper type conversions. sysconf parsing used 'int' to hold strtol() value; change to long. Also it was using raw_printf() instead of config_error_add() to complain about any problems. Clearly the livelog patch was not updated to the current code base before being incorporated.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 sys.h $NHDT-Date: 1596498561 2020/08/03 23:49:21 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.36 $ */
|
||||
/* NetHack 3.7 sys.h $NHDT-Date: 1646255373 2022/03/02 21:09:33 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.38 $ */
|
||||
/* Copyright (c) Kenneth Lorber, Kensington, Maryland, 2008. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -28,7 +28,7 @@ struct sysopt {
|
||||
int check_save_uid; /* restoring savefile checks UID? */
|
||||
int check_plname; /* use plname for checking wizards/explorers/shellers */
|
||||
int bones_pools;
|
||||
unsigned int livelog; /* LL_foo events to livelog */
|
||||
long livelog; /* LL_foo events to livelog */
|
||||
|
||||
/* record file */
|
||||
int persmax;
|
||||
|
||||
Reference in New Issue
Block a user