(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:
Markus Armbruster 2004-02-19 21:15:16 +00:00
parent 379e0a61c3
commit 8d438a4601
4 changed files with 4 additions and 18 deletions

View file

@ -454,8 +454,6 @@ empth_self(void)
void
empth_exit(void)
{
s_char *getlogfile();
loc_Thread_t *pThread =
(loc_Thread_t *)TlsGetValue(loc_GVAR.dwTLSIndex);
@ -466,9 +464,6 @@ empth_exit(void)
if (pThread->bMainThread) {
char buf[20];
/* The main line. Wait forever. */
if (getlogfile() == (s_char *)0)
loginit();
printf("log file: %s\n", getlogfile());
while (1) {
printf("\nEmpire Server>");
fgets(buf, sizeof(buf), stdin);