(loginit, main): Pass log file basename as parameter.
(logerror): Require prior call of loginit(). (empth_exit) [_EMPTH_WIN32]: Don't print the log file name here, it's not modular. (program, getlogfile): Unused, remove.
This commit is contained in:
parent
379e0a61c3
commit
8d438a4601
4 changed files with 4 additions and 18 deletions
|
@ -67,8 +67,6 @@
|
|||
#include "server.h"
|
||||
#include "prototypes.h"
|
||||
|
||||
s_char program[] = "server";
|
||||
|
||||
void nullify_objects(void);
|
||||
void init_files(void);
|
||||
void close_files(void);
|
||||
|
@ -101,6 +99,8 @@ main(int argc, char **argv)
|
|||
struct sigaction act;
|
||||
#endif /* POSIXSIGNALS */
|
||||
|
||||
loginit("server");
|
||||
|
||||
#if !defined(_WIN32)
|
||||
mainpid = getpid();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue