diff options
author | dimitri staessens <[email protected]> | 2017-01-09 15:37:49 +0100 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2017-01-09 15:37:49 +0100 |
commit | ba46a8b5c5717cdff25b39a2cd03a461998921c5 (patch) | |
tree | dc5a1a48c70977d1c5b0abe90f068b17fd262f9c /src/lib/cdap.c | |
parent | e56d24010287127fc6b9c9da8d1f7cf160c50253 (diff) | |
download | ouroboros-ba46a8b5c5717cdff25b39a2cd03a461998921c5.tar.gz ouroboros-ba46a8b5c5717cdff25b39a2cd03a461998921c5.zip |
lib: Revise implementation of list
Adds LGPL license to the ouroboros lists.
Diffstat (limited to 'src/lib/cdap.c')
-rw-r--r-- | src/lib/cdap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/cdap.c b/src/lib/cdap.c index 17104770..869e929d 100644 --- a/src/lib/cdap.c +++ b/src/lib/cdap.c @@ -365,8 +365,8 @@ struct cdap * cdap_create(int fd) return NULL; } - INIT_LIST_HEAD(&instance->sent); - INIT_LIST_HEAD(&instance->rcvd); + list_head_init(&instance->sent); + list_head_init(&instance->rcvd); instance->fd = fd; @@ -573,7 +573,7 @@ cdap_key_t cdap_request_wait(struct cdap * instance, pthread_cleanup_push((void(*)(void *))pthread_mutex_unlock, (void *) &instance->rcvd_lock); - while (list_empty(&instance->rcvd)) + while (list_is_empty(&instance->rcvd)) pthread_cond_wait(&instance->rcvd_cond, &instance->rcvd_lock); rcvd = list_first_entry(&instance->rcvd, struct cdap_rcvd, next); |