Commit 9aff62df authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix various Clang warnings seen on FreeBSD build.

parent 2465ac46
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment