From 46605fb4f5024120f894f9894b8873c6a666a7a5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 6 Feb 2007 20:03:53 +0000 Subject: * Fix 64-bit compiler warnings. --- src/libstore/local-store.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstore/local-store.cc') diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 56d97a048..cace5cb60 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -205,10 +205,10 @@ static void _canonicalisePathMetaData(const Path & path) users group); we check for this case below. */ if (st.st_uid != geteuid()) { #if HAVE_LCHOWN - if (lchown(path.c_str(), geteuid(), -1) == -1) + if (lchown(path.c_str(), geteuid(), (gid_t) -1) == -1) #else if (!S_ISLNK(st.st_mode) && - chown(path.c_str(), geteuid(), -1) == -1) + chown(path.c_str(), geteuid(), (gid_t) -1) == -1) #endif throw SysError(format("changing owner of `%1%' to %2%") % path % geteuid()); -- cgit v1.2.3