X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/321e011925f486709cadd1ab873e8847fc84cbca..b46987cfe602a9a7e2c98bae1528b4a6cdf3e56e:/keydb_pg.c?ds=inline diff --git a/keydb_pg.c b/keydb_pg.c index b5afc9e..8d974fd 100644 --- a/keydb_pg.c +++ b/keydb_pg.c @@ -40,7 +40,7 @@ static PGconn *dbconn = NULL; */ static int keydb_fetchchar(void *fd, size_t count, unsigned char *c) { - return (!lo_read(dbconn, *(int *) fd, c, count)); + return (!lo_read(dbconn, *(int *) fd, (char *) c, count)); } /** @@ -48,7 +48,7 @@ static int keydb_fetchchar(void *fd, size_t count, unsigned char *c) */ static int keydb_putchar(void *fd, size_t count, unsigned char *c) { - return !(lo_write(dbconn, *(int *) fd, c, count)); + return !(lo_write(dbconn, *(int *) fd, (char *) c, count)); } /**