X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=ad829489bffcab461aa02459a548879f6064ad22;hp=fb2583770c69b766bd80cc920fb64c7834d08589;hb=16ee7ff60aee87829916837bcb2a200ce72870d9;hpb=ca600d51e7c35d506e928b54fe78fb049a3cd1c3 diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index fb25837..ad82948 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.39 2005-11-02 21:41:27 adam Exp $ + * $Id: zoomsh.c,v 1.41 2006-04-24 10:30:44 adam Exp $ */ -/* ZOOM-C Shell */ +/** \file zoomsh.c + \brief ZOOM C command line tool (shell) +*/ #include #include @@ -354,8 +356,8 @@ 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"), - ZOOM_resultset_size(r[i])); + printf ("%s: %ld hits\n", ZOOM_connection_option_get(c[i], "host"), + (long) ZOOM_resultset_size(r[i])); /* and display */ display_records (c[i], r[i], start, count); }