X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/321e011925f486709cadd1ab873e8847fc84cbca..ad30ce51bf609c35cd99a9ca46dd859b17d8164a:/keydb_pg.c?ds=sidebyside 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)); } /**