/*
* Copyright (C) 2005-2007 Andre Noll <maan@systemlinux.org>
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Licensed under the GPL v2. For licencing details see COPYING.
*/
-/** \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"
#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.
*
*/
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;