From: Adam Dickmeiss Date: Wed, 24 Dec 2008 00:15:14 +0000 (+0100) Subject: Added a few type casts to avoid warnings. X-Git-Tag: v3.0.40~18 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=3c03c66fdcf640bbf4c611a48bf8c74989d077f6;p=yaz-moved-to-github.git Added a few type casts to avoid warnings. --- 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; }