summaryrefslogtreecommitdiff
path: root/test/c/suites/TestQueue.c
diff options
context:
space:
mode:
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);