diff --git a/src/sbbs3/inkey.cpp b/src/sbbs3/inkey.cpp index 4bca4c28f19d6586aefce6a87da58e551412e8ba..f58631d799bd5aeb9509c086f09eabf6a2a17c20 100644 --- a/src/sbbs3/inkey.cpp +++ b/src/sbbs3/inkey.cpp @@ -624,7 +624,7 @@ void sbbs_t::scroll_hotspots(long count) struct mouse_hotspot* sbbs_t::add_hotspot(char cmd, bool hungry, long minx, long maxx, long y) { - struct mouse_hotspot spot = {0}; + struct mouse_hotspot spot = {}; spot.cmd[0] = cmd; spot.minx = minx < 0 ? column : minx; spot.maxx = maxx < 0 ? column : maxx; @@ -635,7 +635,7 @@ struct mouse_hotspot* sbbs_t::add_hotspot(char cmd, bool hungry, long minx, long struct mouse_hotspot* sbbs_t::add_hotspot(ulong num, bool hungry, long minx, long maxx, long y) { - struct mouse_hotspot spot = {0}; + struct mouse_hotspot spot = {}; SAFEPRINTF(spot.cmd, "%lu\r", num); spot.minx = minx; spot.maxx = maxx; @@ -646,7 +646,7 @@ struct mouse_hotspot* sbbs_t::add_hotspot(ulong num, bool hungry, long minx, lon struct mouse_hotspot* sbbs_t::add_hotspot(const char* cmd, bool hungry, long minx, long maxx, long y) { - struct mouse_hotspot spot = {0}; + struct mouse_hotspot spot = {}; SAFECOPY(spot.cmd, cmd); spot.minx = minx; spot.maxx = maxx; diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp index e5006b3d1667272b0d158af58ebcef252f9971a7..7168098f8c272b95e0e4b33f99b2b2cfa9d52385 100644 --- a/src/sbbs3/main.cpp +++ b/src/sbbs3/main.cpp @@ -1995,8 +1995,8 @@ void input_thread(void *arg) continue; } - if(rd > (int)sizeof(inbuf)) - rd=sizeof(inbuf); + if(rd > (int)sizeof(inbuf)) + rd=sizeof(inbuf); if(pthread_mutex_lock(&sbbs->input_thread_mutex)!=0) sbbs->errormsg(WHERE,ERR_LOCK,"input_thread_mutex",0); @@ -3928,8 +3928,8 @@ int sbbs_t::mv(const char* path, const char* dest, bool copy) ,dest); return(-1); } - if(!copy && rename(src, dest) == 0) - return 0; + if(!copy && rename(src, dest) == 0) + return 0; if(!CopyFile(src, dest, /* fail if exists: */!copy)) { errormsg(WHERE, "CopyFile", src, 0, dest); return -1; diff --git a/src/sbbs3/postmsg.cpp b/src/sbbs3/postmsg.cpp index 7518a85427853422ac46eaa31604ce906573d337..b4cecbd343a1ac4eba795fe45c223c7231fadbd6 100644 --- a/src/sbbs3/postmsg.cpp +++ b/src/sbbs3/postmsg.cpp @@ -648,14 +648,14 @@ extern "C" int postpoll(scfg_t* cfg, smb_t* smb, smbmsg_t* msg) extern "C" int notify(scfg_t* cfg, uint usernumber, const char* subject, const char* text) { int i; - smb_t smb = {0}; + smb_t smb = {}; uint16_t xlat; int storage; long dupechk_hashes; uint16_t agent = AGENT_PROCESS; uint16_t nettype = NET_UNKNOWN; - smbmsg_t msg = {0}; - user_t user = {0}; + smbmsg_t msg = {}; + user_t user = {}; char str[128]; user.number = usernumber;