X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/321e011925f486709cadd1ab873e8847fc84cbca..807aad387f6698a1eec1acf340496f064cb04cbb:/keydb_pg.c diff --git a/keydb_pg.c b/keydb_pg.c index b5afc9e..dd7cbfd 100644 --- a/keydb_pg.c +++ b/keydb_pg.c @@ -4,8 +4,6 @@ * Jonathan McDowell * * Copyright 2002 Project Purple - * - * $Id: keydb_pg.c,v 1.14 2004/03/23 12:33:47 noodles Exp $ */ #include @@ -40,7 +38,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 +46,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)); } /**