summaryrefslogtreecommitdiff
path: root/test/c/suites/TestQueue.c
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-02-17 17:25:57 +0000
committer <>2015-03-17 16:26:24 +0000
commit780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch)
tree598f8b9fa431b228d29897e798de4ac0c1d3d970 /test/c/suites/TestQueue.c
parent7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff)
downloadberkeleydb-master.tar.gz
Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz.HEADdb-6.1.23master
Diffstat (limited to 'test/c/suites/TestQueue.c')
-rw-r--r--test/c/suites/TestQueue.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/c/suites/TestQueue.c b/test/c/suites/TestQueue.c
index 70f0209b..7343d751 100644
--- a/test/c/suites/TestQueue.c
+++ b/test/c/suites/TestQueue.c
@@ -1,7 +1,7 @@
/*-
* See the file LICENSE for redistribution information.
*
- * Copyright (c) 2002, 2012 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.
*
* A C test for the queue access method.
* TODO: Make this more consistent with the CuTest harness.
@@ -778,7 +778,8 @@ int TestQueue(CuTest *ct) {
}
if (!strcmp("sh_tailq", qfns[t].name)) {
result =
- sh_t_verify_TAILQ_LAST(list, ops[i].init);
+ sh_t_verify_TAILQ_LAST(
+ (struct sh_tq *)list, ops[i].init);
}
#ifdef VERBOSE
printf("\ncase %d %s in %s init: \"%s\" desired: \"%s\" elem: \"%s\" insert: \"%s\"\n",
@@ -814,8 +815,8 @@ int TestQueue(CuTest *ct) {
break;
}
if (!strcmp("sh_tailq", op_names[ops[i].op])) {
- result = sh_t_verify_TAILQ_LAST(list,
- ops[i].final);
+ result = sh_t_verify_TAILQ_LAST(
+ (struct sh_tq *)list, ops[i].final);
}
if (result == 0)
result = qfns[t].f_verify(list, ops[i].final);