diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-06-28 16:38:03 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-06-28 16:45:45 +0200 |
commit | 99d19307fae8f1370f52a62aee88fded624ad464 (patch) | |
tree | 36b94730d8690c2d131f39b3cc3ff715674f9fcc /src/lib/irm.c | |
parent | 0d789ed8d938cc342c8f2138280795a1d5a61e3d (diff) | |
download | ouroboros-99d19307fae8f1370f52a62aee88fded624ad464.tar.gz ouroboros-99d19307fae8f1370f52a62aee88fded624ad464.zip |
lib, irmd, ipcpd: Change pid to api
Changes the variable name as well to API instead of PID.
Diffstat (limited to 'src/lib/irm.c')
-rw-r--r-- | src/lib/irm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/irm.c b/src/lib/irm.c index e3902469..6b296258 100644 --- a/src/lib/irm.c +++ b/src/lib/irm.c @@ -177,12 +177,12 @@ ssize_t irm_list_ipcps(char * name, return -1; } - if (recv_msg->pids == NULL) { + if (recv_msg->apis == NULL) { irm_msg__free_unpacked(recv_msg, NULL); return -1; } - nr = recv_msg->n_pids; + nr = recv_msg->n_apis; *apis = malloc(nr * sizeof(pid_t)); if (*apis == NULL) { irm_msg__free_unpacked(recv_msg, NULL); @@ -190,7 +190,7 @@ ssize_t irm_list_ipcps(char * name, } for (i = 0; i < nr; i++) { - (*apis)[i] = recv_msg->pids[i]; + (*apis)[i] = recv_msg->apis[i]; } irm_msg__free_unpacked(recv_msg, NULL); |