X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=keydb_pg.c;h=0771317e747ab1c65a22e5ef71ddb2e7a936a903;hb=7ca3c239d76ae7112c166f29c35e11620ba93d9f;hp=e71ddee3b71777324d6b0b62a82bc3794403b320;hpb=316f1bb1d6915d509f9bee0508922858b103d243;p=onak.git 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)); }