Subj : src/xpdev/gen_defs.h To : CVS commit From : rswindell Date : Sat Aug 15 2020 12:57 pm src/xpdev gen_defs.h 1.84 1.85 Update of /cvsroot/sbbs/src/xpdev In directory cvs:/tmp/cvs-serv32380 Modified Files: gen_defs.h Log Message: Resolve GCC compile warnings on 32-bit Linux by insuring that PRId/uOFF expands to "ld"/"lu", respectively since off_t is a long (not an int): examples: ftpsrvr.c:1374:77: warning: format '%d' expects argument of type 'int', but argument 6 has type 'off_t {aka long int}' [-Wformat=] lprintf(LOG_WARNING, "%04d <%s> !DATA cannot send file (%s) with size of %"PRIdOFF" bytes" websrvr.c:6063:45: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'off_t {aka long int}' [-Wformat=] lprintf(LOG_INFO,"%04d Sending file: %s (%"PRIuOFF" bytes)" .