]> git.tuebingen.mpg.de Git - dss.git/blobdiff - fd.h
Get rid of make_err_msg() and log_err_msg().
[dss.git] / fd.h
diff --git a/fd.h b/fd.h
index e24d446cb702a4bac88456ed5aabc33bdc5937d3..d292db0aa668447e8065729cc99141b36de0dd2c 100644 (file)
--- a/fd.h
+++ b/fd.h
@@ -13,13 +13,9 @@ __must_check int mark_fd_nonblocking(int fd);
  */
 _static_inline_ int dss_rename(const char *old_path, const char *new_path)
 {
-       int ret;
-
        if (rename(old_path, new_path) >= 0)
                return 1;
-       ret = -ERRNO_TO_DSS_ERROR(errno);
-       make_err_msg("rename %s -> %s failed", old_path, new_path);
-       return ret;
+       return -ERRNO_TO_DSS_ERROR(errno);
 }
 
 int dss_select(int n, fd_set *readfds, fd_set *writefds,