X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=file.h;h=f82643a57fe961d3d1f67c837b69f794670188d0;hp=140a505ba01b1fe3adb3614e118103517a722384;hb=50e03ce10c3bab1c43e1e68dca3b0471d63807d9;hpb=2d10a72798da5489363088dfbe02ccbc5942cfcd diff --git a/file.h b/file.h index 140a505..f82643a 100644 --- a/file.h +++ b/file.h @@ -5,17 +5,7 @@ */ int for_each_subdir(int (*func)(const char *, void *), void *private_data); __must_check int mark_fd_nonblocking(int fd); -/** - * A wrapper for rename(2). - * - * \param old_path The source path. - * \param new_path The destination path. - * - * \return Standard. - * - * \sa rename(2). - */ -_static_inline_ int dss_rename(const char *old_path, const char *new_path) +static inline int dss_rename(const char *old_path, const char *new_path) { if (rename(old_path, new_path) >= 0) return 1;