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
Compare Revisions
f4b080885c22c3c76b8143c97a38c9663ab33316...20321673ce2705b683e296764a527973a799049d
Commits (1)
Resolve new GCC warnings
· 20321673
Rob Swindell
authored
Mar 28, 2022
20321673
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/sbbs3/atcodes.cpp
src/sbbs3/atcodes.cpp
+2
-2
src/sbbs3/getstats.c
src/sbbs3/getstats.c
+2
-2
No files found.
src/sbbs3/atcodes.cpp
View file @
20321673
...
...
@@ -1716,11 +1716,11 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode, bool
else
if
(
!
strcmp
(
sp
,
"ULS"
))
safe_snprintf
(
str
,
maxlen
,
"%lu"
,
(
ulong
)
stats
.
uls
);
else
if
(
!
strcmp
(
sp
,
"ULB"
))
safe_snprintf
(
str
,
maxlen
,
"%"
PRIu
32
,
stats
.
ulb
);
safe_snprintf
(
str
,
maxlen
,
"%"
PRIu
64
,
stats
.
ulb
);
else
if
(
!
strcmp
(
sp
,
"DLS"
))
safe_snprintf
(
str
,
maxlen
,
"%lu"
,
(
ulong
)
stats
.
dls
);
else
if
(
!
strcmp
(
sp
,
"DLB"
))
safe_snprintf
(
str
,
maxlen
,
"%"
PRIu
32
,
stats
.
dlb
);
safe_snprintf
(
str
,
maxlen
,
"%"
PRIu
64
,
stats
.
dlb
);
else
if
(
!
strcmp
(
sp
,
"PTODAY"
))
safe_snprintf
(
str
,
maxlen
,
"%lu"
,
(
ulong
)
stats
.
ptoday
);
else
if
(
!
strcmp
(
sp
,
"ETODAY"
))
...
...
src/sbbs3/getstats.c
View file @
20321673
...
...
@@ -271,7 +271,7 @@ BOOL fwrite_cstats(FILE* fp, const stats_t* stats)
);
if
(
len
>=
sizeof
(
pad
))
return
FALSE
;
if
(
fprintf
(
fp
,
"%.*s
\n
"
,
sizeof
(
pad
)
-
(
len
+
1
),
pad
)
<=
0
)
if
(
fprintf
(
fp
,
"%.*s
\n
"
,
(
int
)(
sizeof
(
pad
)
-
(
len
+
1
)
)
,
pad
)
<=
0
)
return
FALSE
;
}
len
=
fprintf
(
fp
...
...
@@ -290,7 +290,7 @@ BOOL fwrite_cstats(FILE* fp, const stats_t* stats)
);
if
(
len
>=
sizeof
(
pad
))
return
FALSE
;
return
fprintf
(
fp
,
"%.*s
\n
"
,
sizeof
(
pad
)
-
(
len
+
1
),
pad
)
>
0
;
return
fprintf
(
fp
,
"%.*s
\n
"
,
(
int
)(
sizeof
(
pad
)
-
(
len
+
1
)
)
,
pad
)
>
0
;
}
/****************************************************************************/
...
...