Subversion Repositories Tewi

Rev

Rev 301 | Rev 311 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 301 Rev 310
Line 1... Line 1...
1
/* $Id: main.c 301 2024-10-10 02:06:20Z nishi $ */
1
/* $Id: main.c 310 2024-10-11 19:44:01Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 531... Line 531...
531
int main(int argc, char** argv) {
531
int main(int argc, char** argv) {
532
	int st;
532
	int st;
533
#ifdef SERVICE
533
#ifdef SERVICE
534
	SERVICE_TABLE_ENTRY table[] = {{"Tewi HTTPd", servmain}, {NULL, NULL}};
534
	SERVICE_TABLE_ENTRY table[] = {{"Tewi HTTPd", servmain}, {NULL, NULL}};
535
	logfile = stderr;
535
	logfile = stderr;
536
	if(!StartServiceCtrlDispatcher(table)){
536
	if(!StartServiceCtrlDispatcher(table)) {
537
		printf("Failed to start the service dispatcher\n");
537
		printf("Failed to start the service dispatcher\n");
538
		return 1;
538
		return 1;
539
	}
539
	}
540
#else
540
#else
541
	logfile = stderr;
541
	logfile = stderr;