src/sbbs3 js_com.c 1.27 1.28 js_cryptcon.c 1.6 1.7 js_file.c 1.166 1.167 js_msgbase.c 1.205 1.206 js_queue.c 1.51 1.52 js_socket.c 1.180 1.181 logfile.cpp 1.59 1.60 sbbs.h 1.443 1.444 sbbsdefs.h 1.206 1.207
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv2978
Modified Files:
js_com.c js_cryptcon.c js_file.c js_msgbase.c js_queue.c
js_socket.c logfile.cpp sbbs.h sbbsdefs.h
Log Message:
Error messages logged with errormsg() now contain the name of the C/C++ function where the error is being reported from. So the WHERE macro now contains the __FUNCTION__ "macro" and the various js*.c files that use the WHERE macro to report errors had to be updated too.
Also, the 'access' argument is now being passed as a signed long rather than unsigned long. Status/return values are often passed in here (e.g. from smblib) and may be negative. This argument was being displayed with %ld but wasn't being passed in as a signed value, so on 64-bit long systems, negative numbers were just printed as large (4M+) numbers.
Also, no need to call getfname() in errormsg() since this is embedded in the WHERE macro (since 2009).
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■
telnet://vert.synchro.net