use bb_xbind/bb_xlisten
[oweals/busybox.git] / coreutils / chown.c
index 660d08947668b4fbb906cecb893b65b046816986..bb379ac205949898ecbc71acb81dff87e50750fa 100644 (file)
@@ -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... */
@@ -76,11 +76,3 @@ int chown_main(int argc, char **argv)
 
        return retval;
 }
-
-/*
-Local Variables:
-c-file-style: "linux"
-c-basic-offset: 4
-tab-width: 4
-End:
-*/