Skip to content

Commit 4fb6d88

Browse files
bl4ckb0neChristophHaag
authored andcommitted
src/driver_usbmon: replace off64_t by z_off_t
`off64_t` is not a language defined type and is not available everywhere. Instead the function should use `z_off_t` which is defined by zlib (and is most likely `off_t`)
1 parent 037189e commit 4fb6d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver_usbmon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ static int gzip_cookie_close(void *cookie) { return gzclose((gzFile)cookie); }
790790

791791
static ssize_t gzip_cookie_read(void *cookie, char *buf, size_t nbytes) { return gzread((gzFile)cookie, buf, nbytes); }
792792

793-
int gzip_cookie_seek(void *cookie, off64_t *pos, int __w) { return gzseek((gzFile)cookie, *pos, __w); }
793+
int gzip_cookie_seek(void *cookie, z_off_t *pos, int __w) { return gzseek((gzFile)cookie, *pos, __w); }
794794

795795
cookie_io_functions_t gzip_cookie = {
796796
.close = gzip_cookie_close, .write = gzip_cookie_write, .read = gzip_cookie_read, .seek = gzip_cookie_seek};

0 commit comments

Comments
 (0)