summaryrefslogtreecommitdiff
path: root/src/tools/irm/irm_ipcp_connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/irm/irm_ipcp_connect.c')
-rw-r--r--src/tools/irm/irm_ipcp_connect.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/irm/irm_ipcp_connect.c b/src/tools/irm/irm_ipcp_connect.c
index 0f52d71b..a874afc2 100644
--- a/src/tools/irm/irm_ipcp_connect.c
+++ b/src/tools/irm/irm_ipcp_connect.c
@@ -63,7 +63,7 @@ int do_connect_ipcp(int argc,
char * name = NULL;
char * dst_name = NULL;
char * comp_name = NULL;
- pid_t * apis = NULL;
+ pid_t * pids = NULL;
ssize_t len = 0;
while (argc > 0) {
@@ -88,7 +88,7 @@ int do_connect_ipcp(int argc,
return -1;
}
- len = irm_list_ipcps(name, &apis);
+ len = irm_list_ipcps(name, &pids);
if (len != 1)
return -1;
@@ -98,13 +98,13 @@ int do_connect_ipcp(int argc,
if (!strcmp(comp_name , MGMT))
comp_name = MGMT_AE;
- if (irm_connect_ipcp(apis[0], dst_name, comp_name)) {
- free(apis);
+ if (irm_connect_ipcp(pids[0], dst_name, comp_name)) {
+ free(pids);
return -1;
}
- if (apis != NULL)
- free(apis);
+ if (pids != NULL)
+ free(pids);
return 0;
}