Commit 548811da authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Document intentional case fall-throughs

CID 33210
CID 33211
parent 92d91fb1
...@@ -575,7 +575,7 @@ uchar* arstr(ushort* count, const char* str, scfg_t* cfg, uchar* ar_buf) ...@@ -575,7 +575,7 @@ uchar* arstr(ushort* count, const char* str, scfg_t* cfg, uchar* ar_buf)
case AR_DAY: case AR_DAY:
if(n>6) /* not past saturday */ if(n>6) /* not past saturday */
n=6; n=6;
// Fall-through // fall-through
case AR_AGE: /* byte operands */ case AR_AGE: /* byte operands */
case AR_PCR: case AR_PCR:
case AR_UDR: case AR_UDR:
......
...@@ -314,7 +314,7 @@ int sbbs_t::exec_function(csi_t *csi) ...@@ -314,7 +314,7 @@ int sbbs_t::exec_function(csi_t *csi)
} }
if(!chksyspass()) if(!chksyspass())
return(0); return(0);
// fall-through
case CS_FILE_SEND: case CS_FILE_SEND:
csi->logic=sendfile(csi->str) ? LOGIC_TRUE:LOGIC_FALSE; csi->logic=sendfile(csi->str) ? LOGIC_TRUE:LOGIC_FALSE;
...@@ -324,7 +324,7 @@ int sbbs_t::exec_function(csi_t *csi) ...@@ -324,7 +324,7 @@ int sbbs_t::exec_function(csi_t *csi)
csi->logic=LOGIC_FALSE; csi->logic=LOGIC_FALSE;
if(!chksyspass()) if(!chksyspass())
return(0); return(0);
// fall-through
case CS_FILE_RECEIVE: case CS_FILE_RECEIVE:
csi->logic=recvfile(csi->str) ? LOGIC_TRUE:LOGIC_FALSE; csi->logic=recvfile(csi->str) ? LOGIC_TRUE:LOGIC_FALSE;
return(0); return(0);
......
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