X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=cad805f530f127d2209a314d6b25f3ed9239efc8;hb=d57ade59211707b9bcfacc61039e446c9fa3f36f;hp=3f31b1ab9dd2b14b0b2fc039dac1bfd3595b6cb9;hpb=09171d137882f80de8584a5adec1ac13c7718a4e;p=yaz-moved-to-github.git diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 3f31b1a..cad805f 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -2,10 +2,12 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: zoomsh.c,v 1.38 2005-11-01 15:07:29 adam Exp $ + * $Id: zoomsh.c,v 1.40 2006-04-21 10:28:07 adam Exp $ */ -/* ZOOM-C Shell */ +/** \file zoomsh.c + \brief ZOOM C command line tool (shell) +*/ #include #include @@ -136,10 +138,11 @@ static void cmd_rget(ZOOM_connection *c, ZOOM_resultset *r, int i; for (i = 0; i"); } } @@ -353,7 +356,7 @@ static void cmd_search (ZOOM_connection *c, ZOOM_resultset *r, int start = ZOOM_options_get_int (options, "start", 0); int count = ZOOM_options_get_int (options, "count", 0); - printf ("%s: %d hits\n", ZOOM_connection_option_get(c[i], "host"), + printf ("%s: %ld hits\n", ZOOM_connection_option_get(c[i], "host"), ZOOM_resultset_size(r[i])); /* and display */ display_records (c[i], r[i], start, count);