From 7e12d1c3bb9e12d6786fc2e16178ee918b440e5a Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Fri, 23 Dec 2011 10:43:43 +0100 Subject: [PATCH] Fix warnings --- src/client.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/client.c b/src/client.c index 9a81190..d8c239d 100644 --- a/src/client.c +++ b/src/client.c @@ -583,8 +583,9 @@ static void client_record_ingest(struct client *cl) if ((rec = ZOOM_resultset_record_immediate(resultset, offset))) { cl->record_offset++; - if (cl->session == 0) - ; + if (cl->session == 0) { + /* no operation */ + } else if (ZOOM_record_error(rec, &msg, &addinfo, 0)) { yaz_log(YLOG_WARN, "Record error %s (%s): %s (rec #%d)", @@ -1137,8 +1138,9 @@ static int apply_limit(struct session_database *sdb, wrbuf_puts(w_ccl, ")"); } - else if (!strncmp(s->value, "local:", 6)) - ; + else if (!strncmp(s->value, "local:", 6)) { + /* no operation */ + } else { yaz_log(YLOG_WARN, "Target %s: Bad limitmap '%s'", -- 1.7.10.4