diff options
Diffstat (limited to 'pullreqd.c')
-rw-r--r-- | pullreqd.c | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -79,6 +79,14 @@ int init_config(char *config_file, config **cfg) { return (*cfg != NULL); } +int main_loop(config *cfg, int listen_socket) { + int done = 0; + + for (; !done;) { + break; + } +} + int main(int argc, char **argv) { config *cfg; char *config_file = "test.conf"; @@ -93,13 +101,7 @@ int main(int argc, char **argv) { /* Did we successfully read the config file? */ if (config_read) { - int done = 0; - - for (; !done;) { - break; - } - - exit_status = EXIT_SUCCESS; + exit_status = main_loop(cfg, listen_socket); } syslog(LOG_NOTICE, "pullreqd stopped."); |