X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=afs.c;h=13a9ccb26a066760bd23c758e3384dbf2057bcfc;hp=2b7b9ee9edc54f4b90a9ff85483eb573145df924;hb=bd38899d7d8cd4043bfee85fcdb55159ca5ba1a2;hpb=471684761a2039bbc89aa1e3c33c62de6bef86cf diff --git a/afs.c b/afs.c index 2b7b9ee9..13a9ccb2 100644 --- a/afs.c +++ b/afs.c @@ -5,7 +5,7 @@ */ -/** \file afs.c functions common to all audio file selectors */ +/** \file afs.c Functions common to all audio file selectors. */ #include "server.cmdline.h" #include "server.h" @@ -17,12 +17,12 @@ #include "string.h" /** - * traverse the given directory recursively + * Traverse the given directory recursively. * - * @param dirname the directory to traverse - * @param f: the function to call for each entry. + * \param dirname The directory to traverse. + * \param f The function to call for each entry. * - * for each regular file whose filename ends in .yyy, where yyy is a supported + * For each regular file whose filename ends in .yyy, where yyy is a supported * audio format, the supplied function \a f is called. The directory and * filename component of the regular file are passed to \a f. * @@ -40,9 +40,8 @@ int find_audio_files(const char *dirname, int (*f)(const char *, const char *)) */ int cwd_fd = open(".", O_RDONLY); struct stat s; - int ret = -1; + int ret; -// PARA_DEBUG_LOG("dirname: %s\n", dirname); if (cwd_fd < 0) return -E_GETCWD; ret = -E_CHDIR;