X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fmarcdisp.c;h=32718898f7817e4f5c2ee2906b5b7947efa68ab2;hp=edb0c9b1ad77808b20a3a9ccc51d8d0e4b66c63d;hb=5c1eb188e9cf6f0dd2e435a1f81938f258515edb;hpb=b8fbcf6d00bc77c4ccdb02d68c9316f3263be15a diff --git a/src/marcdisp.c b/src/marcdisp.c index edb0c9b..3271889 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2013 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ @@ -257,7 +257,7 @@ static int element_name_append_attribute_value( /* TODO Map special codes to something possible for XML ELEMENT names */ int encode = 0; - int index = 0; + size_t index = 0; int success = 0; for (index = 0; index < code_len; index++) { @@ -1312,8 +1312,7 @@ int yaz_marc_write_json(yaz_marc_t mt, WRBUF w) int i; for (i = 0; n->u.datafield.indicator[i]; i++) { - wrbuf_puts(w, ",\n"); - wrbuf_printf(w, "\t\t\t\t\"ind%d\":\"%c\"", i + 1, + wrbuf_printf(w, ",\n\t\t\t\t\"ind%d\":\"%c\"", i + 1, n->u.datafield.indicator[i]); } }