Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
548811da
Commit
548811da
authored
3 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Document intentional case fall-throughs
CID 33210 CID 33211
parent
92d91fb1
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/ars.c
+1
-1
1 addition, 1 deletion
src/sbbs3/ars.c
src/sbbs3/execfunc.cpp
+2
-2
2 additions, 2 deletions
src/sbbs3/execfunc.cpp
with
3 additions
and
3 deletions
src/sbbs3/ars.c
+
1
−
1
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
:
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/execfunc.cpp
+
2
−
2
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment