svn commit: trunk/busybox/coreutils
vodz at busybox.net
vodz at busybox.net
Tue Jan 31 12:06:59 UTC 2006
Author: vodz
Date: 2006-01-31 04:06:57 -0800 (Tue, 31 Jan 2006)
New Revision: 13756
Log:
avoid signed<->unsigned warning
Modified:
trunk/busybox/coreutils/chown.c
trunk/busybox/coreutils/dd.c
trunk/busybox/coreutils/du.c
Changeset:
Modified: trunk/busybox/coreutils/chown.c
===================================================================
--- trunk/busybox/coreutils/chown.c 2006-01-31 11:57:06 UTC (rev 13755)
+++ trunk/busybox/coreutils/chown.c 2006-01-31 12:06:57 UTC (rev 13756)
@@ -26,8 +26,8 @@
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... */
Modified: trunk/busybox/coreutils/dd.c
===================================================================
--- trunk/busybox/coreutils/dd.c 2006-01-31 11:57:06 UTC (rev 13755)
+++ trunk/busybox/coreutils/dd.c 2006-01-31 12:06:57 UTC (rev 13756)
@@ -167,7 +167,7 @@
if (n == 0) {
break;
}
- if (n == bs) {
+ if ((size_t)n == bs) {
in_full++;
} else {
in_part++;
@@ -180,7 +180,7 @@
if (n < 0) {
bb_perror_msg_and_die("%s", outfile);
}
- if (n == bs) {
+ if ((size_t)n == bs) {
out_full++;
} else {
out_part++;
Modified: trunk/busybox/coreutils/du.c
===================================================================
--- trunk/busybox/coreutils/du.c 2006-01-31 11:57:06 UTC (rev 13755)
+++ trunk/busybox/coreutils/du.c 2006-01-31 12:06:57 UTC (rev 13756)
@@ -56,7 +56,7 @@
#endif
static int max_print_depth = INT_MAX;
-static int count_hardlinks = 1;
+static nlink_t count_hardlinks = 1;
static int status
#if EXIT_SUCCESS == 0
More information about the busybox-cvs
mailing list