diff options
author | Dimitri Staessens <[email protected]> | 2023-11-27 14:43:09 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2023-11-29 09:57:29 +0100 |
commit | c1d679506180bc23241fe14818c0a2dbbcbe3cef (patch) | |
tree | af8cd0304b7fc812270a37fd751c503e43331b0a /src/irmd/main.c | |
parent | 7d7228fa0f9b5593fead5cfcb10bfc5bfaad4d08 (diff) | |
download | ouroboros-c1d679506180bc23241fe14818c0a2dbbcbe3cef.tar.gz ouroboros-c1d679506180bc23241fe14818c0a2dbbcbe3cef.zip |
lib: Rename ipcp_info to ipcp_list_info
The ipcp_info struct / message contains information only used for
listing IPCPs, and I will reuse the ipcp_info name for general IPCP
information common to all IPCPs such as name and type.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r-- | src/irmd/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c index f9423f4b..b97791a4 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -940,14 +940,14 @@ static int unbind_process(pid_t pid, return 0; } -static int get_ipcp_info(ipcp_info_msg_t ** msg, +static int get_ipcp_info(ipcp_list_msg_t ** msg, struct reg_ipcp * ipcp) { *msg = malloc(sizeof(**msg)); if (*msg == NULL) goto fail; - ipcp_info_msg__init(*msg); + ipcp_list_msg__init(*msg); (*msg)->name = strdup(ipcp->name); if ((*msg)->name == NULL) @@ -972,7 +972,7 @@ static int get_ipcp_info(ipcp_info_msg_t ** msg, return -1; } -static ssize_t list_ipcps(ipcp_info_msg_t *** ipcps, +static ssize_t list_ipcps(ipcp_list_msg_t *** ipcps, size_t * n_ipcps) { struct list_head * p; @@ -1007,7 +1007,7 @@ static ssize_t list_ipcps(ipcp_info_msg_t *** ipcps, fail: pthread_rwlock_unlock(&irmd.reg_lock); while (i > 0) - ipcp_info_msg__free_unpacked((*ipcps)[--i], NULL); + ipcp_list_msg__free_unpacked((*ipcps)[--i], NULL); free(*ipcps); *n_ipcps = 0; |