summaryrefslogtreecommitdiff
path: root/src/tools/irm/irm_bind_ipcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/irm/irm_bind_ipcp.c')
-rw-r--r--src/tools/irm/irm_bind_ipcp.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/tools/irm/irm_bind_ipcp.c b/src/tools/irm/irm_bind_ipcp.c
index 375be03c..6299ca2b 100644
--- a/src/tools/irm/irm_bind_ipcp.c
+++ b/src/tools/irm/irm_bind_ipcp.c
@@ -50,12 +50,13 @@ static void usage(void)
printf("Usage: irm bind ipcp <name> name <name>\n");
}
-int do_bind_ipcp(int argc, char ** argv)
+int do_bind_ipcp(int argc,
+ char ** argv)
{
char * ipcp = NULL;
char * name = NULL;
- pid_t * apis = NULL;
+ pid_t * pids = NULL;
ssize_t len = 0;
int i;
@@ -84,12 +85,12 @@ int do_bind_ipcp(int argc, char ** argv)
return -1;
}
- len = irm_list_ipcps(ipcp, &apis);
+ len = irm_list_ipcps(ipcp, &pids);
for (i = 0; i < len; ++i)
- irm_bind_api(apis[i], name);
+ irm_bind_process(pids[i], name);
- free(apis);
+ free(pids);
return 0;
}