From 64cc6d31ffdfe512f46aa961e6be23aadd44711b Mon Sep 17 00:00:00 2001 From: Daniel Berrange Date: Fri, 27 May 2011 11:58:50 +0100 Subject: [PATCH] Check lseek return type against (off_t) -1. --- helper/ext2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.8.3.1