From 4dd568fbfcea1362b3353e56cdfd41927f595818 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Fri, 11 Dec 2015 16:41:26 +0100 Subject: [PATCH] read_lseek_blockwise: use void pointer --- lib/internal.h | 2 +- lib/utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal.h b/lib/internal.h index 690ecbfc..35d03a41 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -106,7 +106,7 @@ ssize_t read_buffer(int fd, void *buf, size_t count); ssize_t write_blockwise(int fd, int bsize, void *buf, size_t count); ssize_t read_blockwise(int fd, int bsize, void *buf, size_t count); ssize_t write_lseek_blockwise(int fd, int bsize, char *buf, size_t count, off_t offset); -ssize_t read_lseek_blockwise(int fd, int bsize, char *buf, size_t count, off_t offset); +ssize_t read_lseek_blockwise(int fd, int bsize, void *buf, size_t count, off_t offset); unsigned crypt_getpagesize(void); int init_crypto(struct crypt_device *ctx); diff --git a/lib/utils.c b/lib/utils.c index d9843fa2..c677da94 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -276,7 +276,7 @@ out: return ret; } -ssize_t read_lseek_blockwise(int fd, int bsize, char *buf, size_t count, off_t offset) +ssize_t read_lseek_blockwise(int fd, int bsize, void *buf, size_t count, off_t offset) { char *frontPadBuf; void *frontPadBuf_base = NULL;