summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
author"Vladimir N. Oleynik"2006-01-31 12:06:57 +0000
committer"Vladimir N. Oleynik"2006-01-31 12:06:57 +0000
commit57545c810a1d0e0783b71d1ba74af45063e2fa42 (patch)
treea992ea502ffa824f3ed17e160af73e1bbfb95879 /coreutils
parent4d57926bd3197a2d56267af1417189823a7ae873 (diff)
downloadbusybox-57545c810a1d0e0783b71d1ba74af45063e2fa42.zip
busybox-57545c810a1d0e0783b71d1ba74af45063e2fa42.tar.gz
avoid signed<->unsigned warning
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/chown.c4
-rw-r--r--coreutils/dd.c4
-rw-r--r--coreutils/du.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/chown.c b/coreutils/chown.c
index 660d089..66add48 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... */
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 9a149e2..cba9085 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -167,7 +167,7 @@ int dd_main(int argc, char **argv)
if (n == 0) {
break;
}
- if (n == bs) {
+ if ((size_t)n == bs) {
in_full++;
} else {
in_part++;
@@ -180,7 +180,7 @@ int dd_main(int argc, char **argv)
if (n < 0) {
bb_perror_msg_and_die("%s", outfile);
}
- if (n == bs) {
+ if ((size_t)n == bs) {
out_full++;
} else {
out_part++;
diff --git a/coreutils/du.c b/coreutils/du.c
index 3778f08..d453ba4 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -56,7 +56,7 @@ static unsigned int disp_k; /* bss inits to 0 */
#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