diff options
Diffstat (limited to 'tests/bindletools/bindle-array-queue.c')
| -rw-r--r-- | tests/bindletools/bindle-array-queue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bindletools/bindle-array-queue.c b/tests/bindletools/bindle-array-queue.c index 0986739..6aa45a5 100644 --- a/tests/bindletools/bindle-array-queue.c +++ b/tests/bindletools/bindle-array-queue.c | |||
| @@ -245,7 +245,7 @@ int main( int argc, char * argv[] ) | |||
| 245 | // periodically dequeue data | 245 | // periodically dequeue data |
| 246 | if ((x % 4) == 3) | 246 | if ((x % 4) == 3) |
| 247 | { | 247 | { |
| 248 | if ((objp = bindle_array_dequeue(list, &list_len, sizeof(MyData *))) == NULL) | 248 | if ((objp = bindle_dequeue(list, &list_len, sizeof(MyData *))) == NULL) |
| 249 | return(bindle_tests_error(opts, NULL, "unable to dequeue from queue")); | 249 | return(bindle_tests_error(opts, NULL, "unable to dequeue from queue")); |
| 250 | if ((strcasecmp(src[x/4]->name, (*objp)->name))) | 250 | if ((strcasecmp(src[x/4]->name, (*objp)->name))) |
| 251 | return(bindle_tests_error(opts, NULL, "str of dequeued object is incorrect")); | 251 | return(bindle_tests_error(opts, NULL, "str of dequeued object is incorrect")); |
| @@ -272,7 +272,7 @@ int main( int argc, char * argv[] ) | |||
| 272 | // dequeue data from queue | 272 | // dequeue data from queue |
| 273 | bindle_tests_verbose(opts, "dequeueing from queue ..."); | 273 | bindle_tests_verbose(opts, "dequeueing from queue ..."); |
| 274 | while (list_len > 0) | 274 | while (list_len > 0) |
| 275 | if (bindle_array_dequeue(list, &list_len, sizeof(MyData *)) == NULL) | 275 | if (bindle_dequeue(list, &list_len, sizeof(MyData *)) == NULL) |
| 276 | return(bindle_tests_error(opts, NULL, "unable to dequeue from queue")); | 276 | return(bindle_tests_error(opts, NULL, "unable to dequeue from queue")); |
| 277 | 277 | ||
| 278 | return(0); | 278 | return(0); |
