X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=file.c;h=cd1e43ef7c32c835266bdd3ae73ac34f614371a0;hp=84944082960055e272e942aa40a760b5709eb875;hb=56f81b0dfa62bb5bf2c338733d9370a8b11bfc39;hpb=90e4077abd237cfd03def4ea023a70ccd9167bcf diff --git a/file.c b/file.c index 8494408..cd1e43e 100644 --- a/file.c +++ b/file.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2006-2010 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* SPDX-License-Identifier: GPL-2.0 */ #include #include @@ -69,19 +65,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.