comparison rogue4/rip.c @ 300:0250220d8cdd

Fix an assortment of compiler warnings. A few potential bugs were removed in the process. Much code cleanup remains to be done.
author John "Elwin" Edwards
date Fri, 22 Nov 2019 21:18:27 -0500
parents d3968e9cb98d
children e52a8a7ad4c5
comparison
equal deleted inserted replaced
299:74351bf23e5e 300:0250220d8cdd
239 return; 239 return;
240 #ifdef LOGFILE 240 #ifdef LOGFILE
241 if (log_file == NULL) 241 if (log_file == NULL)
242 return; 242 return;
243 /* otherwise writing should work */ 243 /* otherwise writing should work */
244 sprintf(logmessage, "%d %d %s %d ", time(NULL), amount, whoami, 244 sprintf(logmessage, "%ld %d %s %d ", time(NULL), amount, whoami,
245 pstats.s_lvl); 245 pstats.s_lvl);
246 if (flags == 0) /* died */ 246 if (flags == 0) /* died */
247 { 247 {
248 strcat(logmessage, "killed by "); 248 strcat(logmessage, "killed by ");
249 killer = killname(monst, TRUE); 249 killer = killname(monst, TRUE);