diff options
author | Sander Vrijders <[email protected]> | 2017-01-11 12:08:45 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2017-01-11 12:08:45 +0100 |
commit | a991831b5373eba38d6f756d254f151b22790238 (patch) | |
tree | 0d5b4bc03bf5b9f7462d14b9cb5a54326e1873be /src/ipcpd/normal/fmgr.c | |
parent | 747cde06887cc6893f650f52abcf1c9a08627d52 (diff) | |
download | ouroboros-a991831b5373eba38d6f756d254f151b22790238.tar.gz ouroboros-a991831b5373eba38d6f756d254f151b22790238.zip |
ipcpd: normal: Use new list API
After a previous commit the API of the linked list was changed. This
updates the files that were not yet merged upstream.
Diffstat (limited to 'src/ipcpd/normal/fmgr.c')
-rw-r--r-- | src/ipcpd/normal/fmgr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ipcpd/normal/fmgr.c b/src/ipcpd/normal/fmgr.c index d839cf1b..33ac83c9 100644 --- a/src/ipcpd/normal/fmgr.c +++ b/src/ipcpd/normal/fmgr.c @@ -227,7 +227,7 @@ static void * fmgr_nm1_flow_wait(void * o) while (true) { if (gam_flow_wait(fmgr.gam, &fd, &info, &qs)) { LOG_ERR("Failed to get next flow descriptor."); - continue;; + continue; } ipcp_flow_get_qoscube(fd, &cube); @@ -248,7 +248,7 @@ static void * fmgr_nm1_flow_wait(void * o) flow->fd = fd; flow->qs = qs; - INIT_LIST_HEAD(&flow->next); + list_head_init(&flow->next); list_add(&flow->next, &fmgr.nm1_flows); pthread_rwlock_unlock(&fmgr.nm1_flows_lock); @@ -312,7 +312,7 @@ int fmgr_init() return -1; } - INIT_LIST_HEAD(&fmgr.nm1_flows); + list_head_init(&fmgr.nm1_flows); pthread_rwlock_init(&fmgr.nm1_flows_lock, NULL); pthread_rwlock_init(&fmgr.np1_flows_lock, NULL); |