forked from github/server
stop duplicate parsing of arguments
This commit is contained in:
parent
8f4e6475c7
commit
3e57b19d62
|
@ -288,10 +288,6 @@ int main(int argc, char **argv)
|
|||
int err = 0;
|
||||
lua_State *L;
|
||||
setup_signal_handler();
|
||||
/* parse args once to read config file location */
|
||||
if (parse_args(argc, argv, &err) != 0) {
|
||||
return err;
|
||||
}
|
||||
/* ini file sets defaults for arguments*/
|
||||
parse_config(inifile);
|
||||
if (!global.inifile) {
|
||||
|
|
|
@ -236,7 +236,6 @@ void log_printf(FILE * io, const char *format, ...)
|
|||
va_end(args);
|
||||
}
|
||||
|
||||
|
||||
static FILE *logfile;
|
||||
|
||||
void log_close(void)
|
||||
|
@ -257,9 +256,6 @@ void log_close(void)
|
|||
|
||||
void log_open(const char *filename)
|
||||
{
|
||||
if (logfile) {
|
||||
log_close();
|
||||
}
|
||||
log_rotate(filename, LOG_MAXBACKUPS);
|
||||
logfile = fopen(filename, "a");
|
||||
if (logfile) {
|
||||
|
|
Loading…
Reference in New Issue