diff options
author | onefang | 2020-03-17 20:54:17 +1000 |
---|---|---|
committer | onefang | 2020-03-17 20:54:17 +1000 |
commit | 4bd05770370a688c1c860924a5fd679a04b2e4cd (patch) | |
tree | 83d73d3f7c8e81adaf459042c7ae30c108ee0827 /src | |
parent | Various comment clean ups. (diff) | |
download | opensim-SC_OLD-4bd05770370a688c1c860924a5fd679a04b2e4cd.zip opensim-SC_OLD-4bd05770370a688c1c860924a5fd679a04b2e4cd.tar.gz opensim-SC_OLD-4bd05770370a688c1c860924a5fd679a04b2e4cd.tar.bz2 opensim-SC_OLD-4bd05770370a688c1c860924a5fd679a04b2e4cd.tar.xz |
Remove cruft now that we are back to using full toybox again.
Diffstat (limited to 'src')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index d53e5b5..17a1ae8 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -4313,15 +4313,8 @@ void account_html(char *file, reqData *Rd, HTMLfile *thisFile) | |||
4313 | 4313 | ||
4314 | 4314 | ||
4315 | void sledjchisl_main(void) | 4315 | void sledjchisl_main(void) |
4316 | //int main(int argc, char *argv[], char **env) | ||
4317 | { | 4316 | { |
4318 | // Don't segfault if our environment is crazy. | ||
4319 | // if (!*argv) return 127; | ||
4320 | |||
4321 | char *cmd = *toys.optargs; | 4317 | char *cmd = *toys.optargs; |
4322 | |||
4323 | |||
4324 | // char *cmd = *argv; | ||
4325 | char *tmp; | 4318 | char *tmp; |
4326 | qhashtbl_t *configs = qhashtbl(0, 0); | 4319 | qhashtbl_t *configs = qhashtbl(0, 0); |
4327 | lua_State *L = luaL_newstate(); | 4320 | lua_State *L = luaL_newstate(); |
@@ -4620,7 +4613,6 @@ jit library is loaded or the JIT compiler will not be activated. | |||
4620 | // Note that the OpenSim SMTP stuff is ONLY for LSL script usage, we probably want to put it in the Lua config file instead. | 4613 | // Note that the OpenSim SMTP stuff is ONLY for LSL script usage, we probably want to put it in the Lua config file instead. |
4621 | 4614 | ||
4622 | if (mysql_library_init(toys.optc, toys.optargs, NULL)) | 4615 | if (mysql_library_init(toys.optc, toys.optargs, NULL)) |
4623 | // if (mysql_library_init(argc, argv, NULL)) | ||
4624 | { | 4616 | { |
4625 | E("mysql_library_init() failed!"); | 4617 | E("mysql_library_init() failed!"); |
4626 | goto finished; | 4618 | goto finished; |
@@ -4675,16 +4667,12 @@ jit library is loaded or the JIT compiler will not be activated. | |||
4675 | I("Running SledjChisl inside a web server, pid %d.", getpid()); | 4667 | I("Running SledjChisl inside a web server, pid %d.", getpid()); |
4676 | 4668 | ||
4677 | if (0 == toys.optc) | 4669 | if (0 == toys.optc) |
4678 | // if (1 == argc) | ||
4679 | D("no args"); | 4670 | D("no args"); |
4680 | else | 4671 | else |
4681 | { | 4672 | { |
4682 | for (entries = 0, bytes = -1; entries < toys.optc; entries++) | 4673 | for (entries = 0, bytes = -1; entries < toys.optc; entries++) |
4683 | D("ARG %s\n", toys.optargs[entries]); | 4674 | D("ARG %s\n", toys.optargs[entries]); |
4684 | // for (i = 0; argv[i] != NULL; i++) | ||
4685 | // D("ARG %s", argv[i]); | ||
4686 | } | 4675 | } |
4687 | // printEnv(env); | ||
4688 | printEnv(environ); | 4676 | printEnv(environ); |
4689 | 4677 | ||
4690 | /* | 4678 | /* |