X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=file.c;h=d606c16e15242a4ed9069cd1929428ec42bbcd02;hp=ef7cd528680ee03c021e8cbe2bc1ab6a2434084c;hb=dead9f9151ae2cf14c45e87742284e165976e8c0;hpb=8daf8f3836e745ba07f1aa01252279588574c95a diff --git a/file.c b/file.c index ef7cd52..d606c16 100644 --- a/file.c +++ b/file.c @@ -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.