Subversion Repositories Tewi

Rev

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

Rev 128 Rev 138
Line 1... Line 1...
1
/* $Id: config.c 128 2024-09-23 10:19:19Z nishi $ */
1
/* $Id: config.c 138 2024-09-23 11:12:46Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "tw_config.h"
5
#include "tw_config.h"
6
#include "tw_module.h"
6
#include "tw_module.h"
Line 89... Line 89...
89
	config.module_count = 0;
89
	config.module_count = 0;
90
	config.extension = NULL;
90
	config.extension = NULL;
91
	config.server_root = cm_strdup(PREFIX);
91
	config.server_root = cm_strdup(PREFIX);
92
	config.server_admin = cm_strdup(SERVER_ADMIN);
92
	config.server_admin = cm_strdup(SERVER_ADMIN);
93
	gethostname(config.hostname, 1024);
93
	gethostname(config.hostname, 1024);
94
	chdir(config.server_root);
-
 
95
}
94
}
96
 
95
 
97
int tw_config_read(const char* path) {
96
int tw_config_read(const char* path) {
98
	cm_log("Config", "Reading %s", path);
97
	cm_log("Config", "Reading %s", path);
99
	char cbuf[2];
98
	char cbuf[2];