From f0a73bb9a6696231c37da9069c71f9e97cf6f933 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 17 May 2010 12:29:08 +0200 Subject: [PATCH] zoomsh: show record do NOT render opac zoomsh's show command no longer renders "opac" by default. Only the one the user asks for; besides the buffered would be MANGLED because we were using two buffers from ZOOM_record_get at the same time (one would have to be copied first). --- zoom/zoomsh.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 466633e..3780d50 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -196,9 +196,8 @@ static void display_records(ZOOM_connection c, } else { - int len, opac_len; + int len; const char *render = ZOOM_record_get(rec, type, &len); - const char *opac_render = ZOOM_record_get(rec, "opac", &opac_len); const char *syntax = ZOOM_record_get(rec, "syntax", 0); const char *schema = ZOOM_record_get(rec, "schema", 0); /* if rec is non-null, we got a record for display */ @@ -215,12 +214,6 @@ static void display_records(ZOOM_connection c, } } printf("\n"); - if (opac_render) - { - if (fwrite(opac_render, 1, opac_len, stdout) != (size_t) - opac_len) - printf("write to stdout failed\n"); - } } } } -- 1.7.10.4