diff options
author | Tucker Evans <tucker@tuckerevans.com> | 2020-06-08 22:14:02 -0400 |
---|---|---|
committer | Tucker Evans <tucker@tuckerevans.com> | 2020-06-08 22:14:02 -0400 |
commit | 7e3a4d7bd009df8975f5ef374f979da7405fd501 (patch) | |
tree | 037aeb4ed511b0851c881d76403dfe87b98e653a | |
parent | b93a7b87b55a42ca864325ae91328a5627885471 (diff) |
Fix trivial compiler errors.
-rw-r--r-- | collections/double_ended_queue.c | 4 | ||||
-rw-r--r-- | collections/double_ended_queue.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/collections/double_ended_queue.c b/collections/double_ended_queue.c index 0348cfa..a8daf92 100644 --- a/collections/double_ended_queue.c +++ b/collections/double_ended_queue.c @@ -194,12 +194,12 @@ int index; index = (root->beg + index) % root->limit; if (index >= root->end) - return NULL; + return; root->base[index] = NULL; if (root->beg < root->end || index >= root->beg) { - root->beg = memmove(root->base + root->beg + 1, + memmove(root->base + root->beg + 1, root->base + root->beg, (index - root->beg) * sizeof(void*)); ++root->beg; diff --git a/collections/double_ended_queue.h b/collections/double_ended_queue.h index bfc9d20..b708624 100644 --- a/collections/double_ended_queue.h +++ b/collections/double_ended_queue.h @@ -17,7 +17,7 @@ deq* deq_cp(deq*); void deq_free(deq*); /*Free all elements within queue*/ -void deq_clear() +void deq_clear(); /*data*/ void deq_push_back(deq*, void*); @@ -33,7 +33,7 @@ void deq_truncate(deq*, int); void* deq_front(deq*); void* deq_back(deq*); -void remove(deq*, int); +void deq_remove(deq*, int); /* |