diff options
author | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2006-01-31 12:06:57 +0000 |
---|---|---|
committer | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2006-01-31 12:06:57 +0000 |
commit | 57545c810a1d0e0783b71d1ba74af45063e2fa42 (patch) | |
tree | a992ea502ffa824f3ed17e160af73e1bbfb95879 | |
parent | 4d57926bd3197a2d56267af1417189823a7ae873 (diff) | |
download | busybox-w32-57545c810a1d0e0783b71d1ba74af45063e2fa42.tar.gz busybox-w32-57545c810a1d0e0783b71d1ba74af45063e2fa42.tar.bz2 busybox-w32-57545c810a1d0e0783b71d1ba74af45063e2fa42.zip |
avoid signed<->unsigned warning
-rw-r--r-- | coreutils/chown.c | 4 | ||||
-rw-r--r-- | coreutils/dd.c | 4 | ||||
-rw-r--r-- | coreutils/du.c | 2 |
3 files changed, 5 insertions, 5 deletions
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, | |||
26 | void ATTRIBUTE_UNUSED *junk) | 26 | void ATTRIBUTE_UNUSED *junk) |
27 | { | 27 | { |
28 | if (!chown_func(fileName, | 28 | if (!chown_func(fileName, |
29 | (uid == -1) ? statbuf->st_uid : uid, | 29 | (uid == (uid_t)-1) ? statbuf->st_uid : uid, |
30 | (gid == -1) ? statbuf->st_gid : gid)) { | 30 | (gid == (gid_t)-1) ? statbuf->st_gid : gid)) { |
31 | return TRUE; | 31 | return TRUE; |
32 | } | 32 | } |
33 | bb_perror_msg("%s", fileName); /* A filename could have % in it... */ | 33 | bb_perror_msg("%s", fileName); /* A filename could have % in it... */ |
diff --git a/coreutils/dd.c b/coreutils/dd.c index 9a149e24a..cba90857f 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c | |||
@@ -167,7 +167,7 @@ int dd_main(int argc, char **argv) | |||
167 | if (n == 0) { | 167 | if (n == 0) { |
168 | break; | 168 | break; |
169 | } | 169 | } |
170 | if (n == bs) { | 170 | if ((size_t)n == bs) { |
171 | in_full++; | 171 | in_full++; |
172 | } else { | 172 | } else { |
173 | in_part++; | 173 | in_part++; |
@@ -180,7 +180,7 @@ int dd_main(int argc, char **argv) | |||
180 | if (n < 0) { | 180 | if (n < 0) { |
181 | bb_perror_msg_and_die("%s", outfile); | 181 | bb_perror_msg_and_die("%s", outfile); |
182 | } | 182 | } |
183 | if (n == bs) { | 183 | if ((size_t)n == bs) { |
184 | out_full++; | 184 | out_full++; |
185 | } else { | 185 | } else { |
186 | out_part++; | 186 | out_part++; |
diff --git a/coreutils/du.c b/coreutils/du.c index 3778f0895..d453ba412 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -56,7 +56,7 @@ static unsigned int disp_k; /* bss inits to 0 */ | |||
56 | #endif | 56 | #endif |
57 | 57 | ||
58 | static int max_print_depth = INT_MAX; | 58 | static int max_print_depth = INT_MAX; |
59 | static int count_hardlinks = 1; | 59 | static nlink_t count_hardlinks = 1; |
60 | 60 | ||
61 | static int status | 61 | static int status |
62 | #if EXIT_SUCCESS == 0 | 62 | #if EXIT_SUCCESS == 0 |