X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=client%2Fclient.c;h=5126d97c280b5759cae7d65291486192b3669ee1;hp=b5921ef835dea93c06dc0d3e35df6ae67c012a9d;hb=379504a233e3e2cc85bca1e7b6d864f1395aec7c;hpb=3a36217ed64fc7c30c3c886d85d4f337fe2f9282 diff --git a/client/client.c b/client/client.c index b5921ef..5126d97 100644 --- a/client/client.c +++ b/client/client.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data + * Copyright (C) 1995-2009 Index Data * See the file LICENSE for details. */ /** \file client.c @@ -205,7 +205,7 @@ static void do_hex_dump(const char* buf, size_t len) int x; for (i = 0; i < len ; i = i+16 ) { - printf(" %4.4d ",i); + printf(" %4.4ld ", (long) i); for(x=0 ; i+xu.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)) { @@ -5053,6 +5054,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab