X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=keydb_pg.c;h=8d974fd6d0f4122c334b3c74d0ea2ebf6235fda3;hb=0a3cfdec02106998006653f8ad340e996261a3d5;hp=b5afc9e46b4063597154652b71be1e4052d760c0;hpb=010b333715b8385c78c4bacaf9031e9faed42cfd;p=onak.git 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)); } /**