X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=keydb_pg.c;h=dd7cbfdbbdc30b203246503fba1f984e281d3ce1;hb=a047e3e158d560af079bec920460711d8222317c;hp=b5afc9e46b4063597154652b71be1e4052d760c0;hpb=321e011925f486709cadd1ab873e8847fc84cbca;p=onak.git 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)); } /**