Remove compiler warning about signed/unsigned comparison.
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
17f7da2f42
commit
9ec11d1afd
|
@ -8037,7 +8037,7 @@ int recover_backup_imsm(struct supertype *st, struct mdinfo *info)
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
goto abort;
|
goto abort;
|
||||||
}
|
}
|
||||||
if (read(targets[i], buf, unit_len) != unit_len) {
|
if ((unsigned)read(targets[i], buf, unit_len) != unit_len) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
Name ": Cannot read copy area block: %s\n",
|
Name ": Cannot read copy area block: %s\n",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
|
@ -8049,7 +8049,7 @@ int recover_backup_imsm(struct supertype *st, struct mdinfo *info)
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
goto abort;
|
goto abort;
|
||||||
}
|
}
|
||||||
if (write(targets[i], buf, unit_len) != unit_len) {
|
if ((unsigned)write(targets[i], buf, unit_len) != unit_len) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
Name ": Cannot restore block: %s\n",
|
Name ": Cannot restore block: %s\n",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
|
|
Loading…
Reference in New Issue