diff options
Diffstat (limited to 'isomd5sum/libimplantisomd5.c')
-rw-r--r-- | isomd5sum/libimplantisomd5.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/isomd5sum/libimplantisomd5.c b/isomd5sum/libimplantisomd5.c index 33c223b09..4d7d4c5d0 100644 --- a/isomd5sum/libimplantisomd5.c +++ b/isomd5sum/libimplantisomd5.c @@ -27,12 +27,12 @@ static int parsepvd(int isofd, char *mediasum, long long *isosize) { long long offset; unsigned char *p; - if (lseek(isofd, (off_t)(16L * 2048L), SEEK_SET) == -1) + if (lseek(isofd, 16*2048, SEEK_SET) == -1) return ((long long)-1); - - offset = (16L * 2048L); + + offset = (16 * 2048); for (;1;) { - if (read(isofd, buf, 2048) <= 0) + if (read(isofd, buf, 2048L) == -1) return ((long long)-1); if (buf[0] == 1) |