X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/e53eb5db2367eb5bf2ec72272e068fe57f3ba6a0..f3143629476bae20f5310bbc0a59fe735b5d245d:/keydb_pg.c diff --git a/keydb_pg.c b/keydb_pg.c index e71ddee..0771317 100644 --- a/keydb_pg.c +++ b/keydb_pg.c @@ -36,7 +36,7 @@ static PGconn *dbconn = NULL; /** * keydb_fetchchar - Fetches a char from a file. */ -static int keydb_fetchchar(void *fd, size_t count, unsigned char *c) +static int keydb_fetchchar(void *fd, size_t count, void *c) { return (!lo_read(dbconn, *(int *) fd, (char *) c, count)); } @@ -44,7 +44,7 @@ static int keydb_fetchchar(void *fd, size_t count, unsigned char *c) /** * keydb_putchar - Puts a char to a file. */ -static int keydb_putchar(void *fd, size_t count, unsigned char *c) +static int keydb_putchar(void *fd, size_t count, void *c) { return !(lo_write(dbconn, *(int *) fd, (char *) c, count)); }