Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Synchronet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main
Synchronet
Compare Revisions
62a788ca5ea4e8d6dc9f8341fc2357e87649b859...fa641a662f721e252ae0793b083705f2006d12a9
Source
fa641a662f721e252ae0793b083705f2006d12a9
Select Git revision
...
Target
62a788ca5ea4e8d6dc9f8341fc2357e87649b859
Select Git revision
Compare
Commits (1)
Fix recently introduced warnings reported by GCC.
· fa641a66
Rob Swindell
authored
Dec 11, 2020
fa641a66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
src/sbbs3/writemsg.cpp
src/sbbs3/writemsg.cpp
+4
-4
src/sbbs3/xtrn_sec.cpp
src/sbbs3/xtrn_sec.cpp
+5
-5
No files found.
src/sbbs3/writemsg.cpp
View file @
fa641a66
...
...
@@ -1438,10 +1438,10 @@ bool sbbs_t::forwardmail(smbmsg_t* orgmsg, const char* to, const char* subject,
time32_t
now32
=
time32
(
NULL
);
smb_hfield
(
&
msg
,
FORWARDED
,
sizeof
(
now32
),
&
now32
);
char
*
br
=
NULL
;
char
*
pg
=
nulstr
;
char
*
lt
=
"<"
;
char
*
gt
=
">"
;
c
onst
c
har
*
br
=
NULL
;
c
onst
c
har
*
pg
=
nulstr
;
c
onst
c
har
*
lt
=
"<"
;
c
onst
c
har
*
gt
=
">"
;
if
(
orgmsg
->
text_subtype
!=
NULL
&&
stricmp
(
orgmsg
->
text_subtype
,
"html"
)
==
0
)
{
lt
=
"<"
;
gt
=
">"
;
...
...
src/sbbs3/xtrn_sec.cpp
View file @
fa641a66
...
...
@@ -327,7 +327,7 @@ void sbbs_t::xtrndat(const char *name, const char *dropdir, uchar type, ulong tl
lfexpand
(
str
,
misc
);
write
(
file
,
str
,
strlen
(
str
));
safe_snprintf
(
str
,
sizeof
(
str
),
"%lu
\n
%s
\n
%lu
\n
%ld
\n
%u
\n
%u
\n
%u
\n
%
l
d
\n
%u
\n
"
safe_snprintf
(
str
,
sizeof
(
str
),
"%lu
\n
%s
\n
%lu
\n
%ld
\n
%u
\n
%u
\n
%u
\n
%d
\n
%u
\n
"
,
useron
.
cdt
+
useron
.
freecdt
/* Gold */
,
unixtodstr
(
&
cfg
,
useron
.
laston
,
tmp
)
/* User last on date */
,
cols
/* User screen width */
...
...
@@ -523,7 +523,7 @@ void sbbs_t::xtrndat(const char *name, const char *dropdir, uchar type, ulong tl
*
(
p
++
)
=
0
;
else
p
=
nulstr
;
safe_snprintf
(
str
,
sizeof
(
str
),
"%s
\n
%s
\n
%s
\n
%
l
d
\n
%u
\n
%lu
\n
"
safe_snprintf
(
str
,
sizeof
(
str
),
"%s
\n
%s
\n
%s
\n
%d
\n
%u
\n
%lu
\n
"
,
tmp
/* User's firstname */
,
p
/* User's lastname */
,
useron
.
location
/* User's city */
...
...
@@ -870,7 +870,7 @@ void sbbs_t::xtrndat(const char *name, const char *dropdir, uchar type, ulong tl
l
=
0L
;
write
(
file
,
&
l
,
4
);
/* Memorized message number */
safe_snprintf
(
str
,
sizeof
(
str
),
"%d%c%c%
l
d%s%c%c%d%d%d%c%c"
safe_snprintf
(
str
,
sizeof
(
str
),
"%d%c%c%d%s%c%c%d%d%d%c%c"
,
cfg
.
com_port
/* COM Port number */
,
' '
/* Reserved */
,
' '
/* "" */
...
...
@@ -1103,7 +1103,7 @@ void sbbs_t::xtrndat(const char *name, const char *dropdir, uchar type, ulong tl
return
;
}
safe_snprintf
(
str
,
sizeof
(
str
),
"%s
\n
%
l
d
\n
%d
\n
%lu
\n
%lu
\n
%u
\n
%lu
\n
"
safe_snprintf
(
str
,
sizeof
(
str
),
"%s
\n
%d
\n
%d
\n
%lu
\n
%lu
\n
%u
\n
%lu
\n
"
,
name
/* Complete name of user */
,
INT_TO_BOOL
(
term
&
ANSI
)
/* ANSI ? */
,
!
INT_TO_BOOL
(
term
&
NO_EXASCII
)
/* IBM characters ? */
...
...
@@ -1171,7 +1171,7 @@ void sbbs_t::xtrndat(const char *name, const char *dropdir, uchar type, ulong tl
}
safe_snprintf
(
str
,
sizeof
(
str
),
"%d
\n
%d
\n
%lu
\n
%s%c
\n
%d
\n
%s
\n
%s
\n
%d
\n
%ld
\n
"
"%
l
d
\n
%d
\n
"
"%d
\n
%d
\n
"
,
misc
&
(
XTRN_STDIO
|
XTRN_CONIO
)
?
0
/* Local */
:
2
/* Telnet */
,
misc
&
(
XTRN_STDIO
|
XTRN_CONIO
)
?
INVALID_SOCKET
:
client_socket_dup
,
dte_rate
...
...