diff options
author | Sander Vrijders <[email protected]> | 2016-03-30 13:32:27 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-03-30 13:32:27 +0200 |
commit | a3f002d6f2d102588f988c99eb16c64a68706dd2 (patch) | |
tree | 2ca4abbddec6866be75fa51c4ed7368fadf020a1 /src/tools/irm/irm_enroll_ipcp.c | |
parent | 1d4442e472d20f261986089ea468daa93631d1f4 (diff) | |
parent | 9aa7cd1d8d137bdb11f963af3e29ba4f421ab6b3 (diff) | |
download | ouroboros-a3f002d6f2d102588f988c99eb16c64a68706dd2.tar.gz ouroboros-a3f002d6f2d102588f988c99eb16c64a68706dd2.zip |
Merged in dstaesse/ouroboros/be-rina-name (pull request #46)
lib: renamed rina_name_t to instance_name_t
Diffstat (limited to 'src/tools/irm/irm_enroll_ipcp.c')
-rw-r--r-- | src/tools/irm/irm_enroll_ipcp.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/tools/irm/irm_enroll_ipcp.c b/src/tools/irm/irm_enroll_ipcp.c index 70798821..5c9572bf 100644 --- a/src/tools/irm/irm_enroll_ipcp.c +++ b/src/tools/irm/irm_enroll_ipcp.c @@ -38,15 +38,14 @@ static void usage() int do_enroll_ipcp(int argc, char ** argv) { - char * ap_name = NULL; - int api_id = 0; + instance_name_t api = {NULL, 0}; char * dif_name = NULL; while (argc > 0) { if (matches(*argv, "ap") == 0) { - ap_name = *(argv + 1); + api.name = *(argv + 1); } else if (matches(*argv, "api") == 0) { - api_id = atoi(*(argv + 1)); + api.id = atoi(*(argv + 1)); } else if (matches(*argv, "dif") == 0) { dif_name = *(argv + 1); } else { @@ -59,10 +58,10 @@ int do_enroll_ipcp(int argc, char ** argv) argv += 2; } - if (dif_name == NULL || ap_name == NULL) { + if (dif_name == NULL || api.name == NULL) { usage(); return -1; } - return irm_enroll_ipcp(ap_name, api_id, dif_name); + return irm_enroll_ipcp(&api, dif_name); } |