X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=file.c;h=d606c16e15242a4ed9069cd1929428ec42bbcd02;hp=648421816439acf9a0acd12e002f1da7f780a31e;hb=2d10a72798da5489363088dfbe02ccbc5942cfcd;hpb=f33cf243ae1cb5657cccb7c43c99093936093b4a diff --git a/file.c b/file.c index 6484218..d606c16 100644 --- a/file.c +++ b/file.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2010 Andre Noll + * Copyright (C) 2006-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -23,7 +23,7 @@ * Call a function for each subdirectory of the current working directory. * * \param dirname The directory to traverse. - * \param func The function to call for each subdirecrtory. + * \param func The function to call for each subdirectory. * \param private_data Pointer to an arbitrary data structure. * * For each top-level directory under \a dirname, the supplied function \a func is @@ -69,19 +69,6 @@ out: closedir(dir); return ret; } -/** - * Wrapper for chdir(2). - * - * \param path The specified directory. - * - * \return Standard. - */ -int dss_chdir(const char *path) -{ - if (chdir(path) >= 0) - return 1; - return -ERRNO_TO_DSS_ERROR(errno); -} /** * Set a file descriptor to non-blocking mode.