diff options
author | Daniel Berrange <dberrange@redhat.com> | 2011-05-27 11:58:50 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-05-27 11:58:50 +0100 |
commit | 64cc6d31ffdfe512f46aa961e6be23aadd44711b (patch) | |
tree | b9cc4b68baee2813366f02f37161fba99db13393 | |
parent | c280d22671b1c5b2e6b39951b9c5bc5e83882ac9 (diff) | |
download | febootstrap-64cc6d31ffdfe512f46aa961e6be23aadd44711b.tar.gz febootstrap-64cc6d31ffdfe512f46aa961e6be23aadd44711b.tar.xz febootstrap-64cc6d31ffdfe512f46aa961e6be23aadd44711b.zip |
Check lseek return type against (off_t) -1.
-rw-r--r-- | helper/ext2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/ext2.c b/helper/ext2.c index beef8ed..2395871 100644 --- a/helper/ext2.c +++ b/helper/ext2.c @@ -65,7 +65,7 @@ ext2_start (const char *hostcpu, const char *appliance, if (fd == -1) error (EXIT_FAILURE, errno, "open: %s", appliance); - if (lseek (fd, APPLIANCE_SIZE - 1, SEEK_SET) == -1) + if (lseek (fd, APPLIANCE_SIZE - 1, SEEK_SET) == (off_t) -1) error (EXIT_FAILURE, errno, "lseek"); char c = 0; |