aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-04-16 14:45:25 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-04-16 14:45:25 +0000
commit0a8eeea9d8060b9d25891ccc5a9d55e32bf829ba (patch)
tree4877eac58258fe77183c023ee6e0aab6fecd5651 /src
parent2716f9bc5f947ffdd2835c2a820ca8d35544630e (diff)
* Remove a warning.
Diffstat (limited to 'src')
-rw-r--r--src/nix-setuid-helper/nix-setuid-helper.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-setuid-helper/nix-setuid-helper.cc b/src/nix-setuid-helper/nix-setuid-helper.cc
index 37347cd28..26c457fd9 100644
--- a/src/nix-setuid-helper/nix-setuid-helper.cc
+++ b/src/nix-setuid-helper/nix-setuid-helper.cc
@@ -36,7 +36,7 @@ static void secureChown(uid_t uidFrom, gid_t gidFrom,
to. */
throw Error(error);
- if (uidFrom != -1) {
+ if (uidFrom != (uid_t) -1) {
assert(uidFrom != 0);
if (st.st_uid != uidFrom)
throw Error(error);