Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
548811da
Commit
548811da
authored
Feb 23, 2022
by
Rob Swindell
💬
Browse files
Document intentional case fall-throughs
CID 33210 CID 33211
parent
92d91fb1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/sbbs3/ars.c
src/sbbs3/ars.c
+1
-1
src/sbbs3/execfunc.cpp
src/sbbs3/execfunc.cpp
+2
-2
No files found.
src/sbbs3/ars.c
View file @
548811da
...
...
@@ -575,7 +575,7 @@ uchar* arstr(ushort* count, const char* str, scfg_t* cfg, uchar* ar_buf)
case
AR_DAY
:
if
(
n
>
6
)
/* not past saturday */
n
=
6
;
//
F
all-through
//
f
all-through
case
AR_AGE
:
/* byte operands */
case
AR_PCR
:
case
AR_UDR
:
...
...
src/sbbs3/execfunc.cpp
View file @
548811da
...
...
@@ -314,7 +314,7 @@ int sbbs_t::exec_function(csi_t *csi)
}
if
(
!
chksyspass
())
return
(
0
);
// fall-through
case
CS_FILE_SEND
:
csi
->
logic
=
sendfile
(
csi
->
str
)
?
LOGIC_TRUE
:
LOGIC_FALSE
;
...
...
@@ -324,7 +324,7 @@ int sbbs_t::exec_function(csi_t *csi)
csi
->
logic
=
LOGIC_FALSE
;
if
(
!
chksyspass
())
return
(
0
);
// fall-through
case
CS_FILE_RECEIVE
:
csi
->
logic
=
recvfile
(
csi
->
str
)
?
LOGIC_TRUE
:
LOGIC_FALSE
;
return
(
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment