diff options
author | Sander Vrijders <[email protected]> | 2016-05-10 15:11:51 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-05-10 15:11:51 +0200 |
commit | b4397485d19dc8bd4c109641e0495f8c5a5f4d16 (patch) | |
tree | 03b2e0c45029be54f6372b3d5de2135cefb80bf0 /src/lib/dev.c | |
parent | a952b77225418ce0e92f14e58f2db792ce9a72b0 (diff) | |
parent | f45237ea48631f2d7bc345f27da0f6fac795718b (diff) | |
download | ouroboros-b4397485d19dc8bd4c109641e0495f8c5a5f4d16.tar.gz ouroboros-b4397485d19dc8bd4c109641e0495f8c5a5f4d16.zip |
Merged in dstaesse/ouroboros/irmd-threads (pull request #70)
irmd: use pthread_cond_wait
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r-- | src/lib/dev.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c index d574363b..c1cfe043 100644 --- a/src/lib/dev.c +++ b/src/lib/dev.c @@ -64,6 +64,7 @@ struct ap_data { int ap_init(char * ap_name) { + int i = 0; _ap_instance = malloc(sizeof(struct ap_data)); if (_ap_instance == NULL) { return -1; @@ -106,6 +107,10 @@ int ap_init(char * ap_name) return -1; } + for (i = 0; i < AP_MAX_FLOWS; ++i) + _ap_instance->flows[i].rb = NULL; + + return 0; } |