summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadek Podgorny <radek@podgorny.cz>2014-02-22 17:31:14 +0100
committerRadek Podgorny <radek@podgorny.cz>2014-02-22 17:31:14 +0100
commitdcc50a0c2b73ebbc3c038c52ca731c25054d3622 (patch)
treef4a5047a05548ac16b4d4da88e6038c5a87ee2ed
parentb890d85ae08aab823d9bf79011c28dfdfa34f6cd (diff)
downloadunionfs-fuse-dcc50a0c2b73ebbc3c038c52ca731c25054d3622.tar.gz
setfile: We never used the return value
Fix another compiler warning, which is correct. (from bernd's tree)
-rw-r--r--src/cow_utils.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cow_utils.c b/src/cow_utils.c
index 674956b..0a3992d 100644
--- a/src/cow_utils.c
+++ b/src/cow_utils.c
@@ -61,9 +61,8 @@ int setfile(const char *path, struct stat *fs)
DBG("%s\n", path);
struct utimbuf ut;
- int rval;
+ int rval = 0;
- rval = 0;
fs->st_mode &= S_ISUID | S_ISGID | S_ISTXT | S_IRWXU | S_IRWXG | S_IRWXO;
ut.actime = fs->st_atime;
@@ -108,7 +107,7 @@ int setfile(const char *path, struct stat *fs)
RETURN(rval);
}
#endif
- RETURN(0);
+ RETURN(rval);
}
/**