--- src/bbcp_Node.C.orig 2015-01-15 22:20:08.000000000 -0800 +++ src/bbcp_Node.C 2015-01-15 22:31:02.000000000 -0800 @@ -94,7 +94,7 @@ bbcp_Link *link; int retc; - if (link = bbcp_Net.Connect(bbcp_Config.CBhost, bbcp_Config.CBport)) + if ((link = bbcp_Net.Connect(bbcp_Config.CBhost, bbcp_Config.CBport))) {if ((retc = protocol->Login(link, 0)) < 0) {delete link; link = 0;} } @@ -354,8 +354,8 @@ oflag = O_WRONLY | O_CREAT | O_TRUNC; } else if (bbcp_Config.Options & bbcp_APPEND) - {if (retc = fp->WriteSigFile()) return retc; - if (startoff = fp->targetsz) oflag = O_WRONLY; + {if ((retc = fp->WriteSigFile())) return retc; + if ((startoff = fp->targetsz)) oflag = O_WRONLY; else oflag = O_CREAT | O_WRONLY; } else oflag = O_WRONLY | O_CREAT | O_EXCL; @@ -368,7 +368,7 @@ // Tell the user what we are bout to do // - if (bbcp_Config.Options & bbcp_BLAB | bbcp_Config.Progint) + if ((bbcp_Config.Options & bbcp_BLAB) | bbcp_Config.Progint) if (bbcp_Config.Options & bbcp_APPEND) {char buff[32]; sprintf(buff, "%lld", startoff); @@ -464,7 +464,7 @@ // Wait for the expansion thread to end // if (bbcp_Config.Options & bbcp_COMPRESS) - {if (tretc = (long)bbcp_Thread_Wait(cxp->TID)) retc = 128; + {if ((tretc = (long)bbcp_Thread_Wait(cxp->TID))) retc = 128; DEBUG("File expansion ended; rc=" <