git.annexia.org
/
febootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c280d22
)
Check lseek return type against (off_t) -1.
author
Daniel Berrange
<dberrange@redhat.com>
Fri, 27 May 2011 10:58:50 +0000
(11:58 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Fri, 27 May 2011 10:58:50 +0000
(11:58 +0100)
helper/ext2.c
patch
|
blob
|
history
diff --git
a/helper/ext2.c
b/helper/ext2.c
index
beef8ed
..
2395871
100644
(file)
--- 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;