summaryrefslogtreecommitdiff
path: root/src/tcpproxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcpproxy.c')
-rw-r--r--src/tcpproxy.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/tcpproxy.c b/src/tcpproxy.c
index 68add0f..b708f31 100644
--- a/src/tcpproxy.c
+++ b/src/tcpproxy.c
@@ -100,15 +100,15 @@ int main(int argc, char* argv[])
log_close();
exit(ret);
}
- string_list_element_t* tmp = opt.log_targets_.first_;
+ slist_element_t* tmp = opt.log_targets_.first_;
while(tmp) {
- ret = log_add_target(tmp->string_);
+ ret = log_add_target(tmp->data_);
if(ret) {
switch(ret) {
case -2: fprintf(stderr, "memory error on log_add_target, exitting\n"); break;
- case -3: fprintf(stderr, "unknown log target: '%s', exitting\n", tmp->string_); break;
- case -4: fprintf(stderr, "this log target is only allowed once: '%s', exitting\n", tmp->string_); break;
- default: fprintf(stderr, "syntax error near: '%s', exitting\n", tmp->string_); break;
+ case -3: fprintf(stderr, "unknown log target: '%s', exitting\n", (char*)(tmp->data_)); break;
+ case -4: fprintf(stderr, "this log target is only allowed once: '%s', exitting\n", (char*)(tmp->data_)); break;
+ default: fprintf(stderr, "syntax error near: '%s', exitting\n", (char*)(tmp->data_)); break;
}
options_clear(&opt);
@@ -121,6 +121,8 @@ int main(int argc, char* argv[])
log_printf(NOTICE, "just started...");
options_parse_post(&opt);
+ options_print(&opt);
+
priv_info_t priv;
if(opt.username_)
if(priv_init(&priv, opt.username_, opt.groupname_)) {