]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Remove compiler warning about signed/unsigned comparison.
authorAlbert Pauw <albert.pauw@gmail.com>
Wed, 15 Jun 2011 04:39:30 +0000 (14:39 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 15 Jun 2011 04:39:30 +0000 (14:39 +1000)
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c

index 7c45541c3655be397096d9ec800b203c2c2aa098..67ce0879fdeffef167f3ab8063698b5bd2d0c9e2 100644 (file)
@@ -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));