diff options
author | Albert Pauw <albert.pauw@gmail.com> | 2011-06-15 14:39:30 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-06-15 14:39:30 +1000 |
commit | 9ec11d1afd4abc303ec4a8ea25eea0cb155dcc8f (patch) | |
tree | 6a163c7e4b8acc521f24b428249764463cef9b0e | |
parent | 17f7da2f428a71470496ac3d9f5cb846a5564691 (diff) | |
download | mdadm-9ec11d1afd4abc303ec4a8ea25eea0cb155dcc8f.tar.gz |
Remove compiler warning about signed/unsigned comparison.
Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r-- | super-intel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/super-intel.c b/super-intel.c index 7c45541..67ce087 100644 --- a/super-intel.c +++ b/super-intel.c @@ -8037,7 +8037,7 @@ int recover_backup_imsm(struct supertype *st, struct mdinfo *info) strerror(errno)); goto abort; } - if (read(targets[i], buf, unit_len) != unit_len) { + if ((unsigned)read(targets[i], buf, unit_len) != unit_len) { fprintf(stderr, Name ": Cannot read copy area block: %s\n", strerror(errno)); @@ -8049,7 +8049,7 @@ int recover_backup_imsm(struct supertype *st, struct mdinfo *info) strerror(errno)); goto abort; } - if (write(targets[i], buf, unit_len) != unit_len) { + if ((unsigned)write(targets[i], buf, unit_len) != unit_len) { fprintf(stderr, Name ": Cannot restore block: %s\n", strerror(errno)); |