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.
2.2 KiB
2.2 KiB