aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/bindletools/bindle-array-queue.c
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-08-21 22:44:15 -0800
committerDavid M. Syzdek <david@syzdek.net>2022-08-21 22:44:15 -0800
commit398e71259893c8bdedeb0129fafc8024bc80c2c0 (patch)
treecd0ca11b769972bd012546b32ee146a71915be9f /tests/bindletools/bindle-array-queue.c
parentad2b0888d9b389e91a9776c2308d5621eff479ff (diff)
downloadbindletools-398e71259893c8bdedeb0129fafc8024bc80c2c0.tar.gz
bindletools-398e71259893c8bdedeb0129fafc8024bc80c2c0.tar.bz2
bindletools-398e71259893c8bdedeb0129fafc8024bc80c2c0.tar.xz
bindletools-398e71259893c8bdedeb0129fafc8024bc80c2c0.zip
libbindle: renaming bindle_array_dequeue() to bindle_dequeue()
Diffstat (limited to 'tests/bindletools/bindle-array-queue.c')
-rw-r--r--tests/bindletools/bindle-array-queue.c4
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);