avoid signed<->unsigned warning
This commit is contained in:
parent
4d57926bd3
commit
57545c810a
@ -26,8 +26,8 @@ static int fileAction(const char *fileName, struct stat *statbuf,
|
|||||||
void ATTRIBUTE_UNUSED *junk)
|
void ATTRIBUTE_UNUSED *junk)
|
||||||
{
|
{
|
||||||
if (!chown_func(fileName,
|
if (!chown_func(fileName,
|
||||||
(uid == -1) ? statbuf->st_uid : uid,
|
(uid == (uid_t)-1) ? statbuf->st_uid : uid,
|
||||||
(gid == -1) ? statbuf->st_gid : gid)) {
|
(gid == (gid_t)-1) ? statbuf->st_gid : gid)) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
bb_perror_msg("%s", fileName); /* A filename could have % in it... */
|
bb_perror_msg("%s", fileName); /* A filename could have % in it... */
|
||||||
|
@ -167,7 +167,7 @@ int dd_main(int argc, char **argv)
|
|||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (n == bs) {
|
if ((size_t)n == bs) {
|
||||||
in_full++;
|
in_full++;
|
||||||
} else {
|
} else {
|
||||||
in_part++;
|
in_part++;
|
||||||
@ -180,7 +180,7 @@ int dd_main(int argc, char **argv)
|
|||||||
if (n < 0) {
|
if (n < 0) {
|
||||||
bb_perror_msg_and_die("%s", outfile);
|
bb_perror_msg_and_die("%s", outfile);
|
||||||
}
|
}
|
||||||
if (n == bs) {
|
if ((size_t)n == bs) {
|
||||||
out_full++;
|
out_full++;
|
||||||
} else {
|
} else {
|
||||||
out_part++;
|
out_part++;
|
||||||
|
@ -56,7 +56,7 @@ static unsigned int disp_k; /* bss inits to 0 */
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int max_print_depth = INT_MAX;
|
static int max_print_depth = INT_MAX;
|
||||||
static int count_hardlinks = 1;
|
static nlink_t count_hardlinks = 1;
|
||||||
|
|
||||||
static int status
|
static int status
|
||||||
#if EXIT_SUCCESS == 0
|
#if EXIT_SUCCESS == 0
|
||||||
|
Loading…
Reference in New Issue
Block a user