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
Abort if OpenSSL does not exist and --with-openssl is given
[yaz-moved-to-github.git]
/
util
/
benchmark.c
diff --git
a/util/benchmark.c
b/util/benchmark.c
index
2d36326
..
942742c
100644
(file)
--- a/
util/benchmark.c
+++ b/
util/benchmark.c
@@
-1,4
+1,4
@@
-/* $Id: benchmark.c,v 1.4 2004-01-26 21:05:34 mike Exp $
+/* $Id: benchmark.c,v 1.6 2004-06-15 09:58:13 adam Exp $
* Copyright (C) 2003-2004 Index Data Aps
*
* This file is part of the YAZ toolkit.
* Copyright (C) 2003-2004 Index Data Aps
*
* This file is part of the YAZ toolkit.
@@
-39,8
+39,7
@@
struct options {
static int test(char *host, int port);
static int test(char *host, int port);
-static void dprintf(int level, char *fmt, ...);
-
+static void db_printf(int level, char *fmt, ...);
int main(int argc, char **argv)
{
int main(int argc, char **argv)
{
@@
-84,12
+83,12
@@
int main(int argc, char **argv)
port = atoi(argv[optind+1]);
for (i = 0; i < options.nconnect; i++) {
port = atoi(argv[optind+1]);
for (i = 0; i < options.nconnect; i++) {
- dprintf(2, "iteration %d of %d", i+1, options.nconnect);
+ db_printf(2, "iteration %d of %d", i+1, options.nconnect);
ok = test(host, port);
if (ok) nok++;
}
ok = test(host, port);
if (ok) nok++;
}
- dprintf(1, "passed %d of %d tests", nok, options.nconnect);
+ db_printf(1, "passed %d of %d tests", nok, options.nconnect);
if (nok < options.nconnect)
printf("Failed %d of %d tests\n",
options.nconnect-nok, options.nconnect);
if (nok < options.nconnect)
printf("Failed %d of %d tests\n",
options.nconnect-nok, options.nconnect);
@@
-115,8
+114,7
@@
static int test(char *host, int port)
return 1;
}
return 1;
}
-
-static void dprintf(int level, char *fmt, ...)
+static void db_printf(int level, char *fmt, ...)
{
va_list ap;
{
va_list ap;