From 0a8eeea9d8060b9d25891ccc5a9d55e32bf829ba Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 16 Apr 2007 14:45:25 +0000 Subject: * Remove a warning. --- src/nix-setuid-helper/nix-setuid-helper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nix-setuid-helper/nix-setuid-helper.cc b/src/nix-setuid-helper/nix-setuid-helper.cc index 37347cd281c5..26c457fd93c3 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); -- cgit 1.4.1