From f77061f0ad18ff3a037a10ca4fcb0954e0848fa3 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 20 Sep 2011 11:21:19 +0200 Subject: [PATCH] Reformat --- src/querytowrbuf.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/querytowrbuf.c b/src/querytowrbuf.c index 109fec6..0716b6f 100644 --- a/src/querytowrbuf.c +++ b/src/querytowrbuf.c @@ -26,7 +26,7 @@ void yaz_encode_pqf_term(WRBUF b, const char *term, int len) { if (term[0] == '@') wrbuf_putc(b, '\\'); - for (i = 0; ivalue.numeric); break; case Z_AttributeValue_complex: - for (i = 0; ivalue.complex->num_list; i++) + for (i = 0; i < element->value.complex->num_list; i++) { if (i) wrbuf_puts(b, ","); @@ -111,7 +111,7 @@ static void yaz_apt_to_wrbuf(WRBUF b, const Z_AttributesPlusTerm *zapt) { int num_attributes = zapt->attributes->num_attributes; int i; - for (i = 0; iattributes->attributes[i]); switch (zapt->term->which) @@ -253,7 +253,7 @@ void wrbuf_diags(WRBUF b, int num_diagnostics, Z_DiagRec **diags) wrbuf_puts(b,"(diag not in default format?)"); else { - Z_DefaultDiagFormat *e=diags[0]->u.defaultFormat; + Z_DefaultDiagFormat *e = diags[0]->u.defaultFormat; if (e->condition) wrbuf_printf(b, ODR_INT_PRINTF " ",*e->condition); else -- 1.7.10.4