version 1.8, 2022/03/18 19:55:19 |
version 1.9, 2022/03/18 20:54:01 |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <unistd.h> |
#include <unistd.h> |
|
#include <string.h> |
#include <syslog.h> |
#include <syslog.h> |
|
|
#include "blind.h" |
#include "blind.h" |
Line 81 main(int argc, char *argv[]) |
|
Line 82 main(int argc, char *argv[]) |
|
if ((bl = config_init()) == NULL) |
if ((bl = config_init()) == NULL) |
log_fatal("config default"); |
log_fatal("config default"); |
|
|
|
if (strlcpy(bl->bl_conf, config, PATH_MAX)>= PATH_MAX) |
|
log_fatal("config file exceeds PATH_MAX"); |
|
|
|
// conf file |
|
|
|
// parse config |
|
|
|
log_debug("conf=%s", bl->bl_conf); |
|
log_debug("sock=%s", bl->bl_sock); |
log_debug("ttl=%d", bl->bl_ttl); |
log_debug("ttl=%d", bl->bl_ttl); |
|
|
// conf file format + default values |
|
|
|
// TAILQ_INIT(&offline_queue) |
// TAILQ_INIT(&offline_queue) |
|
|
// parse_config |
|
|
|
exit(0); |
exit(0); |
} |
} |