Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 7472d7c5 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Using the automagic function in the karadata executable

parent 0217f665
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!40Mgnt
...@@ -324,20 +324,15 @@ main(int argc, char *argv[]) ...@@ -324,20 +324,15 @@ main(int argc, char *argv[])
sqlite3 *db; sqlite3 *db;
bool ret = true; bool ret = true;
lkt_config_t conf; lkt_config_t conf;
char conf_file[PATH_MAX], kara_dir[PATH_MAX], *db_path; char kara_dir[PATH_MAX], *db_path;
if (argc < 2) if (argc < 2)
goto print_help; goto print_help;
/* Read the config file. */ /* Read the config file. */
if (config_detect_file((char **) &conf_file, PATH_MAX)) { if (config_open(&conf)) {
fprintf(stderr, " ! error while searching for a config file\n"); fprintf(stderr, " ! could not load configuration\n");
return 1;
}
if (config_new(conf_file, &conf)) {
fprintf(stderr, " ! error while loading file %s\n", conf_file);
return 1; return 1;
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter