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
f7c7121b
Commit
f7c7121b
authored
2 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Change qhub_t mode and days to an unsigned 8-bit int
Resolve the QWKnet hub 'days' key in msgs.ini being written as -1
parent
d0958673
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/scfg/scfgnet.c
+1
-1
1 addition, 1 deletion
src/sbbs3/scfg/scfgnet.c
src/sbbs3/scfgdefs.h
+2
-2
2 additions, 2 deletions
src/sbbs3/scfgdefs.h
src/sbbs3/scfglib1.c
+1
-1
1 addition, 1 deletion
src/sbbs3/scfglib1.c
with
4 additions
and
4 deletions
src/sbbs3/scfg/scfgnet.c
+
1
−
1
View file @
f7c7121b
...
...
@@ -54,7 +54,7 @@ bool new_qhub_sub(qhub_t* qhub, unsigned subnum, sub_t* sub, unsigned confnum)
{
if
((
qhub
->
sub
=
realloc
(
qhub
->
sub
,
sizeof
(
*
qhub
->
sub
)
*
(
qhub
->
subs
+
1
)))
==
NULL
||
(
qhub
->
conf
=
(
ushort
*
)
realloc
(
qhub
->
conf
,
sizeof
(
*
qhub
->
conf
)
*
(
qhub
->
subs
+
1
)))
==
NULL
||
(
qhub
->
mode
=
(
char
*
)
realloc
(
qhub
->
mode
,
sizeof
(
*
qhub
->
mode
)
*
(
qhub
->
subs
+
1
)))
==
NULL
)
{
||
(
qhub
->
mode
=
(
u
char
*
)
realloc
(
qhub
->
mode
,
sizeof
(
*
qhub
->
mode
)
*
(
qhub
->
subs
+
1
)))
==
NULL
)
{
/* ToDo: report error */
return
false
;
}
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/scfgdefs.h
+
2
−
2
View file @
f7c7121b
...
...
@@ -320,11 +320,11 @@ typedef struct { /* Generic Timed Event */
typedef
struct
{
/* QWK Network Hub */
char
id
[
LEN_QWKID
+
1
],
/* System ID of Hub */
*
mode
,
/* Mode for Ctrl-A codes for ea. sub */
days
,
/* Days to call-out on */
call
[
LEN_CMD
+
1
],
/* Call-out command line to execute */
pack
[
LEN_CMD
+
1
],
/* Packing command line */
unpack
[
LEN_CMD
+
1
];
/* Unpacking command line */
uint8_t
*
mode
,
/* Mode for Ctrl-A codes for ea. sub */
days
;
/* Days to call-out on */
char
fmt
[
MAX_FILEEXT_LEN
+
1
];
/* Archive format */
uint16_t
time
,
/* Time to call-out */
node
,
/* Node to do the call-out */
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/scfglib1.c
+
1
−
1
View file @
f7c7121b
...
...
@@ -531,7 +531,7 @@ BOOL read_msgs_cfg(scfg_t* cfg, char* error, size_t maxerrlen)
return
allocerr
(
error
,
maxerrlen
,
fname
,
"qhub sub"
,
sizeof
(
sub_t
)
*
k
);
if
((
cfg
->
qhub
[
i
]
->
conf
=
(
ushort
*
)
malloc
(
sizeof
(
ushort
)
*
k
))
==
NULL
)
return
allocerr
(
error
,
maxerrlen
,
fname
,
"qhub conf"
,
sizeof
(
ushort
)
*
k
);
if
((
cfg
->
qhub
[
i
]
->
mode
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
k
))
==
NULL
)
if
((
cfg
->
qhub
[
i
]
->
mode
=
(
u
char
*
)
malloc
(
sizeof
(
u
char
)
*
k
))
==
NULL
)
return
allocerr
(
error
,
maxerrlen
,
fname
,
"qhub mode"
,
sizeof
(
uchar
)
*
k
);
}
...
...
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