From 57545c810a1d0e0783b71d1ba74af45063e2fa42 Mon Sep 17 00:00:00 2001 From: "\"Vladimir N. Oleynik\"" Date: Tue, 31 Jan 2006 12:06:57 +0000 Subject: avoid signed<->unsigned warning --- coreutils/chown.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coreutils/chown.c') diff --git a/coreutils/chown.c b/coreutils/chown.c index 660d08947..66add48ed 100644 --- a/coreutils/chown.c +++ b/coreutils/chown.c @@ -26,8 +26,8 @@ static int fileAction(const char *fileName, struct stat *statbuf, void ATTRIBUTE_UNUSED *junk) { if (!chown_func(fileName, - (uid == -1) ? statbuf->st_uid : uid, - (gid == -1) ? statbuf->st_gid : gid)) { + (uid == (uid_t)-1) ? statbuf->st_uid : uid, + (gid == (gid_t)-1) ? statbuf->st_gid : gid)) { return TRUE; } bb_perror_msg("%s", fileName); /* A filename could have % in it... */ -- cgit v1.2.3