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
Commits
298e8f89
Commit
298e8f89
authored
Sep 09, 2020
by
Rob Swindell
💬
Browse files
Resolve GCC warnings.
parent
dc5da457
Pipeline
#101
passed with stage
in 10 minutes and 59 seconds
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
src/sbbs3/js_file_area.c
src/sbbs3/js_file_area.c
+3
-3
src/sbbs3/js_msg_area.c
src/sbbs3/js_msg_area.c
+2
-2
src/xpdev/dirwrap.c
src/xpdev/dirwrap.c
+0
-1
No files found.
src/sbbs3/js_file_area.c
View file @
298e8f89
...
...
@@ -129,7 +129,7 @@ JSBool DLLCALL js_file_area_resolve(JSContext* cx, JSObject* areaobj, jsid id)
if
(
id
!=
JSID_VOID
&&
id
!=
JSID_EMPTY
)
{
jsval
idval
;
JS_IdToValue
(
cx
,
id
,
&
idval
);
if
(
JSVAL_IS_STRING
(
idval
))
JSSTRING_TO_MSTRING
(
cx
,
JSVAL_TO_STRING
(
idval
),
name
,
NULL
);
...
...
@@ -219,7 +219,7 @@ JSBool DLLCALL js_file_area_resolve(JSContext* cx, JSObject* areaobj, jsid id)
lib_index
=-
1
;
if
(
p
->
user
==
NULL
||
chk_ar
(
p
->
cfg
,
p
->
cfg
->
lib
[
l
]
->
ar
,
p
->
user
,
p
->
client
))
{
if
(
!
JS_GetArrayLength
(
cx
,
lib_list
,
&
lib_index
))
if
(
!
JS_GetArrayLength
(
cx
,
lib_list
,
(
jsuint
*
)
&
lib_index
))
return
JS_FALSE
;
if
(
!
JS_SetElement
(
cx
,
lib_list
,
lib_index
,
&
val
))
...
...
@@ -291,7 +291,7 @@ JSBool DLLCALL js_file_area_resolve(JSContext* cx, JSObject* areaobj, jsid id)
dir_index
=-
1
;
if
(
p
->
user
==
NULL
||
chk_ar
(
p
->
cfg
,
p
->
cfg
->
dir
[
d
]
->
ar
,
p
->
user
,
p
->
client
))
{
if
(
!
JS_GetArrayLength
(
cx
,
dir_list
,
&
dir_index
))
if
(
!
JS_GetArrayLength
(
cx
,
dir_list
,
(
jsuint
*
)
&
dir_index
))
return
JS_FALSE
;
if
(
!
JS_SetElement
(
cx
,
dir_list
,
dir_index
,
&
val
))
...
...
src/sbbs3/js_msg_area.c
View file @
298e8f89
...
...
@@ -447,7 +447,7 @@ JSBool DLLCALL js_msg_area_resolve(JSContext* cx, JSObject* areaobj, jsid id)
grp_index
=-
1
;
if
(
p
->
user
==
NULL
||
chk_ar
(
p
->
cfg
,
p
->
cfg
->
grp
[
l
]
->
ar
,
p
->
user
,
p
->
client
))
{
if
(
!
JS_GetArrayLength
(
cx
,
grp_list
,
&
grp_index
))
if
(
!
JS_GetArrayLength
(
cx
,
grp_list
,
(
jsuint
*
)
&
grp_index
))
return
JS_FALSE
;
if
(
!
JS_SetElement
(
cx
,
grp_list
,
grp_index
,
&
val
))
...
...
@@ -538,7 +538,7 @@ JSBool DLLCALL js_msg_area_resolve(JSContext* cx, JSObject* areaobj, jsid id)
sub_index
=-
1
;
if
(
p
->
user
==
NULL
||
can_user_access_sub
(
p
->
cfg
,
d
,
p
->
user
,
p
->
client
))
{
if
(
!
JS_GetArrayLength
(
cx
,
sub_list
,
&
sub_index
))
if
(
!
JS_GetArrayLength
(
cx
,
sub_list
,
(
jsuint
*
)
&
sub_index
))
return
JS_FALSE
;
if
(
!
JS_SetElement
(
cx
,
sub_list
,
sub_index
,
&
val
))
...
...
src/xpdev/dirwrap.c
View file @
298e8f89
...
...
@@ -1223,7 +1223,6 @@ int DLLCALL mkpath(const char* path)
BOOL
CopyFile
(
const
char
*
src
,
const
char
*
dest
,
BOOL
failIfExists
)
{
uint8_t
buf
[
256
*
1024
];
ulong
count
=
0
;
FILE
*
in
;
FILE
*
out
;
BOOL
success
=
TRUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment