From b5ae1650387a68a9521935c36d6e5f94dd46c458 Mon Sep 17 00:00:00 2001 From: Mike Fulbright Date: Fri, 13 Jun 2003 16:07:57 +0000 Subject: pulling in isomd5sum fixes from taroon branch --- isomd5sum/libimplantisomd5.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'isomd5sum/libimplantisomd5.c') 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) -- cgit