diff --git a/src/client/distren.c b/src/client/distren.c --- a/src/client/distren.c +++ b/src/client/distren.c @@ -26,7 +26,6 @@ */ -#include "options.h" #include "execio.h" #include @@ -51,18 +50,7 @@ int main(int argc, char *argv[]) distren_t distren; distren_job_t distren_job; - struct options_common *options; - cfg_t *cfg; - - cfg_opt_t cfg_opts[] = - { - CFG_STR_LIST("render_types", NULL, 0), - CFG_STR("username", NULL, 0), - CFG_STR("name", NULL, 0), - CFG_STR("email", NULL, 0), - CFG_END() - }; input = NULL; output = NULL; @@ -100,14 +88,6 @@ int main(int argc, char *argv[]) else if(curopt == 'o') output = strdup(optarg); } - /* - parse the config file after the arguments so we can intercept -h for help - */ - if(options_init(argc, argv, &cfg, cfg_opts, "client", &options)) - { - fprintf(stderr, "error getting configuration\n"); - //return 1; - } /* give this error after the general arguments parsing so that @@ -176,7 +156,7 @@ int main(int argc, char *argv[]) // We need some code to ssh, and if the SSH fails, tell the user to register. // Killed the user reg code, as the php interface will take care of this. Although it should check for users... - options_free(options); + return 0; };