summaryrefslogtreecommitdiff
path: root/src/cow_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cow_utils.c')
-rw-r--r--src/cow_utils.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/cow_utils.c b/src/cow_utils.c
index a79945b..49126c6 100644
--- a/src/cow_utils.c
+++ b/src/cow_utils.c
@@ -104,7 +104,7 @@ int setfile(const char *path, struct stat *fs)
usyslog(LOG_WARNING, "chflags: %s", path);
rval = 1;
}
- RETURN((rval));
+ RETURN(rval);
}
#endif
RETURN(0);
@@ -120,10 +120,10 @@ static int setlink(const char *path, struct stat *fs)
if (lchown(path, fs->st_uid, fs->st_gid)) {
if (errno != EPERM) {
usyslog(LOG_WARNING, "lchown: %s", path);
- RETURN((1));
+ RETURN(1);
}
}
- RETURN((0));
+ RETURN(0);
}
@@ -144,7 +144,7 @@ int copy_file(struct cow *cow)
if ((from_fd = open(cow->from_path, O_RDONLY, 0)) == -1) {
usyslog(LOG_WARNING, "%s", cow->from_path);
- RETURN((1));
+ RETURN(1);
}
fs = cow->stat;
@@ -155,7 +155,7 @@ int copy_file(struct cow *cow)
if (to_fd == -1) {
usyslog(LOG_WARNING, "%s", cow->to_path);
(void)close(from_fd);
- RETURN((1));
+ RETURN(1);
}
/*
@@ -201,7 +201,7 @@ int copy_file(struct cow *cow)
if (rval == 1) {
(void)close(from_fd);
(void)close(to_fd);
- RETURN((1));
+ RETURN(1);
}
if (setfile(cow->to_path, cow->stat))
@@ -228,7 +228,7 @@ int copy_file(struct cow *cow)
rval = 1;
}
- RETURN((rval));
+ RETURN(rval);
}
/**
@@ -243,14 +243,14 @@ int copy_link(struct cow *cow)
if ((len = readlink(cow->from_path, link, sizeof(link)-1)) == -1) {
usyslog(LOG_WARNING, "readlink: %s", cow->from_path);
- RETURN((1));
+ RETURN(1);
}
link[len] = '\0';
if (symlink(link, cow->to_path)) {
usyslog(LOG_WARNING, "symlink: %s", link);
- RETURN((1));
+ RETURN(1);
}
RETURN(setlink(cow->to_path, cow->stat));
@@ -266,7 +266,7 @@ int copy_fifo(struct cow *cow)
if (mkfifo(cow->to_path, cow->stat->st_mode)) {
usyslog(LOG_WARNING, "mkfifo: %s", cow->to_path);
- RETURN((1));
+ RETURN(1);
}
RETURN(setfile(cow->to_path, cow->stat));
}
@@ -281,7 +281,7 @@ int copy_special(struct cow *cow)
if (mknod(cow->to_path, cow->stat->st_mode, cow->stat->st_rdev)) {
usyslog(LOG_WARNING, "mknod: %s", cow->to_path);
- RETURN((1));
+ RETURN(1);
}
RETURN(setfile(cow->to_path, cow->stat));
}