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
36c8d644
Commit
36c8d644
authored
9 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Address warnings reported by GCC 4.9.2.
parent
2205e969
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/echocfg.c
+1
-1
1 addition, 1 deletion
src/sbbs3/echocfg.c
src/sbbs3/sbbsecho.c
+5
-7
5 additions, 7 deletions
src/sbbs3/sbbsecho.c
src/sbbs3/sbbsecho.h
+2
-2
2 additions, 2 deletions
src/sbbs3/sbbsecho.h
with
8 additions
and
10 deletions
src/sbbs3/echocfg.c
+
1
−
1
View file @
36c8d644
...
@@ -491,7 +491,7 @@ int main(int argc, char **argv)
...
@@ -491,7 +491,7 @@ int main(int argc, char **argv)
case
1
:
case
1
:
uifc
.
helpbuf
=
uifc
.
helpbuf
=
"~ Comment ~
\r\n\r\n
"
"~ Comment ~
\r\n\r\n
"
"This is an optional comment for the node (e.g. the sysop's name).
\r\n
"
;
"This is an optional comment for the node (e.g. the sysop's name).
\r\n
"
"This is used for informational purposes only.
\r\n
"
;
"This is used for informational purposes only.
\r\n
"
;
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
0
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
"Comment"
,
"Comment"
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/sbbsecho.c
+
5
−
7
View file @
36c8d644
...
@@ -376,7 +376,6 @@ bool bso_lock_node(fidoaddr_t dest)
...
@@ -376,7 +376,6 @@ bool bso_lock_node(fidoaddr_t dest)
const
char
*
bso_flo_filename
(
fidoaddr_t
dest
)
const
char
*
bso_flo_filename
(
fidoaddr_t
dest
)
{
{
ushort
attr
=
0
;
nodecfg_t
*
nodecfg
;
nodecfg_t
*
nodecfg
;
char
ch
=
'f'
;
char
ch
=
'f'
;
const
char
*
outbound
;
const
char
*
outbound
;
...
@@ -599,15 +598,15 @@ bool new_pkthdr(fpkthdr_t* hdr, fidoaddr_t orig, fidoaddr_t dest, const nodecfg_
...
@@ -599,15 +598,15 @@ bool new_pkthdr(fpkthdr_t* hdr, fidoaddr_t orig, fidoaddr_t dest, const nodecfg_
hdr
->
type2
.
sernum
=
SBBSECHO_VERSION_MAJOR
;
hdr
->
type2
.
sernum
=
SBBSECHO_VERSION_MAJOR
;
if
(
nodecfg
!=
NULL
&&
nodecfg
->
pktpwd
[
0
]
!=
0
)
if
(
nodecfg
!=
NULL
&&
nodecfg
->
pktpwd
[
0
]
!=
0
)
strncpy
(
hdr
->
type2
.
password
,
nodecfg
->
pktpwd
,
sizeof
(
hdr
->
type2
.
password
));
strncpy
(
(
char
*
)
hdr
->
type2
.
password
,
nodecfg
->
pktpwd
,
sizeof
(
hdr
->
type2
.
password
));
if
(
pkt_type
==
PKT_TYPE_2_0
)
if
(
pkt_type
==
PKT_TYPE_2_0
)
return
true
;
return
true
;
if
(
pkt_type
==
PKT_TYPE_2_2
)
{
if
(
pkt_type
==
PKT_TYPE_2_2
)
{
hdr
->
type2_2
.
subversion
=
2
;
/* 2.2 */
hdr
->
type2_2
.
subversion
=
2
;
/* 2.2 */
strncpy
(
hdr
->
type2_2
.
origdomn
,
"fidonet"
,
sizeof
(
hdr
->
type2_2
.
origdomn
));
strncpy
(
(
char
*
)
hdr
->
type2_2
.
origdomn
,
"fidonet"
,
sizeof
(
hdr
->
type2_2
.
origdomn
));
strncpy
(
hdr
->
type2_2
.
destdomn
,
"fidonet"
,
sizeof
(
hdr
->
type2_2
.
destdomn
));
strncpy
(
(
char
*
)
hdr
->
type2_2
.
destdomn
,
"fidonet"
,
sizeof
(
hdr
->
type2_2
.
destdomn
));
return
true
;
return
true
;
}
}
...
@@ -706,6 +705,7 @@ int create_netmail(const char *to, const smbmsg_t* msg, const char *subject, con
...
@@ -706,6 +705,7 @@ int create_netmail(const char *to, const smbmsg_t* msg, const char *subject, con
switch
(
nodecfg
->
status
)
{
switch
(
nodecfg
->
status
)
{
case
MAIL_STATUS_HOLD
:
hdr
.
attr
|=
FIDO_HOLD
;
break
;
case
MAIL_STATUS_HOLD
:
hdr
.
attr
|=
FIDO_HOLD
;
break
;
case
MAIL_STATUS_CRASH
:
hdr
.
attr
|=
FIDO_CRASH
;
break
;
case
MAIL_STATUS_CRASH
:
hdr
.
attr
|=
FIDO_CRASH
;
break
;
case
MAIL_STATUS_NORMAL
:
break
;
}
}
direct
=
nodecfg
->
direct
;
direct
=
nodecfg
->
direct
;
}
}
...
@@ -4155,7 +4155,6 @@ void pack_netmail(void)
...
@@ -4155,7 +4155,6 @@ void pack_netmail(void)
const
char
*
outbound
;
const
char
*
outbound
;
char
*
fmsgbuf
=
NULL
;
char
*
fmsgbuf
=
NULL
;
char
ch
;
char
ch
;
ushort
attr
;
int
i
;
int
i
;
int
file
;
int
file
;
int
fmsg
;
int
fmsg
;
...
@@ -4260,7 +4259,6 @@ void pack_netmail(void)
...
@@ -4260,7 +4259,6 @@ void pack_netmail(void)
return
;
return
;
}
}
attr
=
0
;
nodecfg
=
findnodecfg
(
&
cfg
,
addr
,
0
);
nodecfg
=
findnodecfg
(
&
cfg
,
addr
,
0
);
if
(
nodecfg
!=
NULL
&&
nodecfg
->
route
.
zone
&&
nodecfg
->
status
==
MAIL_STATUS_NORMAL
)
{
if
(
nodecfg
!=
NULL
&&
nodecfg
->
route
.
zone
&&
nodecfg
->
status
==
MAIL_STATUS_NORMAL
)
{
addr
=
nodecfg
->
route
;
/* Routed */
addr
=
nodecfg
->
route
;
/* Routed */
...
@@ -4509,7 +4507,7 @@ void import_packets(const char* inbound, nodecfg_t* inbox, bool secure)
...
@@ -4509,7 +4507,7 @@ void import_packets(const char* inbound, nodecfg_t* inbox, bool secure)
}
}
nodecfg_t
*
nodecfg
=
findnodecfg
(
&
cfg
,
pkt_orig
,
1
);
nodecfg_t
*
nodecfg
=
findnodecfg
(
&
cfg
,
pkt_orig
,
1
);
SAFECOPY
(
password
,
pkthdr
.
type2
.
password
);
SAFECOPY
(
password
,
(
char
*
)
pkthdr
.
type2
.
password
);
if
(
nodecfg
!=
NULL
&&
stricmp
(
password
,
nodecfg
->
pktpwd
))
{
if
(
nodecfg
!=
NULL
&&
stricmp
(
password
,
nodecfg
->
pktpwd
))
{
lprintf
(
LOG_WARNING
,
"Packet %s from %s - "
lprintf
(
LOG_WARNING
,
"Packet %s from %s - "
"Incorrect password ('%s' instead of '%s')"
"Incorrect password ('%s' instead of '%s')"
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/sbbsecho.h
+
2
−
2
View file @
36c8d644
...
@@ -169,8 +169,8 @@ typedef struct {
...
@@ -169,8 +169,8 @@ typedef struct {
ulong
max_echomail_age
;
ulong
max_echomail_age
;
}
sbbsecho_cfg_t
;
}
sbbsecho_cfg_t
;
char
*
pktTypeStringList
[];
char
*
pktTypeStringList
[
4
];
char
*
mailStatusStringList
[];
char
*
mailStatusStringList
[
4
];
/***********************/
/***********************/
/* Function prototypes */
/* Function prototypes */
...
...
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