From 4bd05770370a688c1c860924a5fd679a04b2e4cd Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 17 Mar 2020 20:54:17 +1000 Subject: Remove cruft now that we are back to using full toybox again. --- src/sledjchisl/sledjchisl.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/sledjchisl') 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) void sledjchisl_main(void) -//int main(int argc, char *argv[], char **env) { - // Don't segfault if our environment is crazy. -// if (!*argv) return 127; - char *cmd = *toys.optargs; - - -// char *cmd = *argv; char *tmp; qhashtbl_t *configs = qhashtbl(0, 0); lua_State *L = luaL_newstate(); @@ -4620,7 +4613,6 @@ jit library is loaded or the JIT compiler will not be activated. // Note that the OpenSim SMTP stuff is ONLY for LSL script usage, we probably want to put it in the Lua config file instead. if (mysql_library_init(toys.optc, toys.optargs, NULL)) -// if (mysql_library_init(argc, argv, NULL)) { E("mysql_library_init() failed!"); goto finished; @@ -4675,16 +4667,12 @@ jit library is loaded or the JIT compiler will not be activated. I("Running SledjChisl inside a web server, pid %d.", getpid()); if (0 == toys.optc) -// if (1 == argc) D("no args"); else { for (entries = 0, bytes = -1; entries < toys.optc; entries++) D("ARG %s\n", toys.optargs[entries]); -// for (i = 0; argv[i] != NULL; i++) -// D("ARG %s", argv[i]); } -// printEnv(env); printEnv(environ); /* -- cgit v1.1