projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get rid of redundant parameter to yaz_log_to_file. Reformat a bit
[yaz-moved-to-github.git]
/
zoom
/
zoomsh.c
diff --git
a/zoom/zoomsh.c
b/zoom/zoomsh.c
index
3f31b1a
..
ad82948
100644
(file)
--- 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.
*
* 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.41 2006-04-24 10:30:44 adam Exp $
*/
*/
-/* ZOOM-C Shell */
+/** \file zoomsh.c
+ \brief ZOOM C command line tool (shell)
+*/
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
@@
-136,10
+138,11
@@
static void cmd_rget(ZOOM_connection *c, ZOOM_resultset *r,
int i;
for (i = 0; i<MAX_CON; i++)
{
int i;
for (i = 0; i<MAX_CON; i++)
{
+ const char *val;
if (!r[i])
continue;
if (!r[i])
continue;
- const char *val = ZOOM_resultset_option_get(r[i], key);
+ val = ZOOM_resultset_option_get(r[i], key);
printf ("%s = %s\n", key, val ? val : "<null>");
}
}
printf ("%s = %s\n", key, val ? val : "<null>");
}
}
@@
-353,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);
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);
}
/* and display */
display_records (c[i], r[i], start, count);
}