X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=random_dbtool.c;h=a74415579aeffb5010332184418ae5dcadfa5a76;hp=26a6b109c06df4b6373d11de9ee7d894bd5e28e7;hb=b2917b2a0a68f84da34e7435ad697d798a0260da;hpb=694e47fdcdfcbbd5897a8e484d78595912b73409 diff --git a/random_dbtool.c b/random_dbtool.c index 26a6b109..a7441557 100644 --- a/random_dbtool.c +++ b/random_dbtool.c @@ -83,7 +83,7 @@ static char **random_get_audio_file_list(unsigned int num) audio_file_list = NULL; num_audio_files = 0; /* first run, just count all audio files. dopey */ - ret = find_audio_files(conf.random_dbtool_dir_arg, count_audio_files); + ret = find_audio_files(conf.random_dir_arg, count_audio_files); if (ret < 0) goto out; ret = -E_NOTHING_FOUND; @@ -93,7 +93,7 @@ static char **random_get_audio_file_list(unsigned int num) audio_file_list = para_malloc(num_audio_files * sizeof(char *)); audio_file_count = 0; /* second run (hot dentry cache, hopefully), fill audio_file_list */ - ret = find_audio_files(conf.random_dbtool_dir_arg, remember_file); + ret = find_audio_files(conf.random_dir_arg, remember_file); if (ret < 0) goto out; /* careful, files might got deleted underneath */ @@ -122,7 +122,6 @@ out: static void random_shutdown(void) { - PARA_DEBUG_LOG("%s", "thanks for using another dbtool.\n"); } /** random's (constant) database info text */ @@ -134,9 +133,9 @@ static void random_shutdown(void) * Init all function pointers of \a db, init the dbinfo text and seed the * PRNG. * - * \sa struct dbtool, misc_meta_data::dbinfo, mysql.c + * \sa struct audio_file_selector, misc_meta_data::dbinfo, mysql.c */ -int random_dbtool_init(struct dbtool *db) +int random_dbtool_init(struct audio_file_selector *db) { struct timeval now;