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
7f4673b8
Commit
7f4673b8
authored
1 month ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Fix JSDoor warnings
parent
cb385de5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/js_system.c
+4
-4
4 additions, 4 deletions
src/sbbs3/js_system.c
src/sbbs3/jsexec.c
+5
-1
5 additions, 1 deletion
src/sbbs3/jsexec.c
with
9 additions
and
5 deletions
src/sbbs3/js_system.c
+
4
−
4
View file @
7f4673b8
...
...
@@ -397,17 +397,17 @@ static JSBool js_system_get(JSContext *cx, JSObject *obj, jsid id, jsval *vp)
static
JSBool
js_system_set
(
JSContext
*
cx
,
JSObject
*
obj
,
jsid
id
,
JSBool
strict
,
jsval
*
vp
)
{
jsval
idval
;
jsint
tiny
;
js_system_private_t
*
sys
;
if
((
sys
=
(
js_system_private_t
*
)
js_GetClassPrivate
(
cx
,
obj
,
&
js_system_class
))
==
NULL
)
return
JS_FALSE
;
#ifndef JSDOOR
jsval
idval
;
jsint
tiny
;
JS_IdToValue
(
cx
,
id
,
&
idval
);
tiny
=
JSVAL_TO_INT
(
idval
);
#ifndef JSDOOR
switch
(
tiny
)
{
case
SYS_PROP_MISC
:
JS_ValueToECMAUint32
(
cx
,
*
vp
,
(
uint32_t
*
)
&
sys
->
cfg
->
sys_misc
);
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/jsexec.c
+
5
−
1
View file @
7f4673b8
...
...
@@ -126,8 +126,8 @@ void usage()
#else
" -c<ctrl_dir> specify path to Synchronet CTRL directory
\n
"
" -R require successful load of configuration files
\n
"
#endif
" -C do not change the current working directory (to CTRL dir)
\n
"
#endif
#if defined(__unix__)
" -d run in background (daemonize)
\n
"
#endif
...
...
@@ -1208,9 +1208,11 @@ int main(int argc, char **argv)
ulong
exec_count
=
0
;
bool
loop
=
false
;
bool
nonbuffered_con
=
false
;
#ifndef JSDOOR
bool
change_cwd
=
true
;
FILE
*
fp
;
char
ini_fname
[
MAX_PATH
+
1
];
#endif
str_list_t
ini
=
NULL
;
#ifdef __unix__
struct
sigaction
sa
=
{
0
};
...
...
@@ -1377,9 +1379,11 @@ int main(int argc, char **argv)
confp
=
errfp
;
}
break
;
#ifndef JSDOOR
case
'C'
:
change_cwd
=
false
;
break
;
#endif
#if defined(__unix__)
case
'd'
:
daemonize
=
true
;
...
...
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