From 3c03c66fdcf640bbf4c611a48bf8c74989d077f6 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 24 Dec 2008 01:15:14 +0100 Subject: [PATCH] Added a few type casts to avoid warnings. --- client/client.c | 5 +++-- src/iconv_decode_danmarc.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/client.c b/client/client.c index b5921ef..99d6c54 100644 --- a/client/client.c +++ b/client/client.c @@ -890,7 +890,8 @@ static void display_record(Z_External *r) { print_record((const unsigned char *) r->u.octet_aligned->buf, r->u.octet_aligned->len); - marc_file_write(r->u.octet_aligned->buf, r->u.octet_aligned->len); + marc_file_write((const char *) r->u.octet_aligned->buf, + r->u.octet_aligned->len); } else if (oid && r->which == Z_External_octet) { @@ -981,7 +982,7 @@ static void display_record(Z_External *r) return; } print_record(r->u.sutrs->buf, r->u.sutrs->len); - marc_file_write(r->u.sutrs->buf, r->u.sutrs->len); + marc_file_write((const char *) r->u.sutrs->buf, r->u.sutrs->len); } else if (oid && !oid_oidcmp(oid, yaz_oid_recsyn_grs_1)) { diff --git a/src/iconv_decode_danmarc.c b/src/iconv_decode_danmarc.c index 3dc0f6e..37831f9 100644 --- a/src/iconv_decode_danmarc.c +++ b/src/iconv_decode_danmarc.c @@ -77,7 +77,7 @@ static unsigned long read_danmarc(yaz_iconv_t cd, else { unsigned long v; - sscanf(inp+1, "%4lx", &v); + sscanf((const char *) inp+1, "%4lx", &v); *no_read = 5; x = v; } -- 1.7.10.4