Use only one global variable for snapshot creation pids.
[dss.git] / fd.h
diff --git a/fd.h b/fd.h
index e24d446cb702a4bac88456ed5aabc33bdc5937d3..f54e76a2a8068c7f89faf4ea4eaf633e2a08ee98 100644 (file)
--- a/fd.h
+++ b/fd.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright (C) 2006-2008 Andre Noll <maan@systemlinux.org>
+ *
+ * Licensed under the GPL v2. For licencing details see COPYING.
+ */
 int dss_chdir(const char *path);
 int for_each_subdir(int (*func)(const char *, void *), void *private_data);
 __must_check int mark_fd_nonblocking(int fd);
@@ -13,13 +18,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,