/*@=boundswrite@*/
fdstat_exit(fd, FDSTAT_READ, rc);
- if (fd->ndigests && rc > 0) fdUpdateDigests(fd, buf, rc);
+ if (fd->ndigests && rc > 0) fdUpdateDigests(fd, (void *)buf, rc);
DBGIO(fd, (stderr, "==>\tfdRead(%p,%p,%ld) rc %ld %s\n", cookie, buf, (long)count, (long)rc, fdbg(fd)));
if (fd->bytesRemain == 0) return 0; /* XXX simulate EOF */
- if (fd->ndigests && count > 0) fdUpdateDigests(fd, buf, count);
+ if (fd->ndigests && count > 0) fdUpdateDigests(fd, (void *)buf, count);
if (count == 0) return 0;
}
} else if (rc >= 0) {
fdstat_exit(fd, FDSTAT_READ, rc);
- if (fd->ndigests && rc > 0) fdUpdateDigests(fd, buf, rc);
+ if (fd->ndigests && rc > 0) fdUpdateDigests(fd, (void *)buf, rc);
}
return rc;
}
if (fd == NULL || fd->bytesRemain == 0) return 0; /* XXX simulate EOF */
- if (fd->ndigests && count > 0) fdUpdateDigests(fd, buf, count);
+ if (fd->ndigests && count > 0) fdUpdateDigests(fd, (void *)buf, count);
gzfile = gzdFileno(fd);
if (gzfile == NULL) return -2; /* XXX can't happen */
} else if (rc >= 0) {
fdstat_exit(fd, FDSTAT_READ, rc);
/*@-compdef@*/
- if (fd->ndigests && rc > 0) fdUpdateDigests(fd, buf, rc);
+ if (fd->ndigests && rc > 0) fdUpdateDigests(fd, (void *)buf, rc);
/*@=compdef@*/
}
return rc;
if (fd->bytesRemain == 0) return 0; /* XXX simulate EOF */
- if (fd->ndigests && count > 0) fdUpdateDigests(fd, buf, count);
+ if (fd->ndigests && count > 0) fdUpdateDigests(fd, (void *)buf, count);
bzfile = bzdFileno(fd);
fdstat_enter(fd, FDSTAT_WRITE);