diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2017-08-29 16:50:26 +0000 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-08-29 16:50:26 +0000 |
commit | 8fe0340d2117cf9b5c724ff10621978ef2bee5f1 (patch) | |
tree | 8158e5feb1e59546ba1f972286f84ba7532c6615 /src/tools/irm/irm_ipcp_disconnect.c | |
parent | f3593b8a26c05392b09c16472b55f8662db22335 (diff) | |
parent | e533ca60b841193fbdb7d135de3d9e56916445c2 (diff) | |
download | ouroboros-8fe0340d2117cf9b5c724ff10621978ef2bee5f1.tar.gz ouroboros-8fe0340d2117cf9b5c724ff10621978ef2bee5f1.zip |
Merged in sandervrijders/ouroboros/be-corrupt (pull request #581)
Be corrupt
Diffstat (limited to 'src/tools/irm/irm_ipcp_disconnect.c')
-rw-r--r-- | src/tools/irm/irm_ipcp_disconnect.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/irm/irm_ipcp_disconnect.c b/src/tools/irm/irm_ipcp_disconnect.c index 8f83f3e8..2a4bbd38 100644 --- a/src/tools/irm/irm_ipcp_disconnect.c +++ b/src/tools/irm/irm_ipcp_disconnect.c @@ -35,10 +35,10 @@ static void usage(void) { printf("Usage: irm ipcp disconnect\n" - " name <ipcp name>\n" - " comp <COMPONENT>\n" - " dst <name of destination IPCP>\n" - "where COMPONENT = {" DT " " MGMT "},\n\n"); + " name <ipcp name>\n" + " component [COMPONENT]\n" + " dst <name of destination IPCP>\n\n" + "where COMPONENT = {" DT " " MGMT "}\n"); } int do_disconnect_ipcp(int argc, @@ -51,11 +51,11 @@ int do_disconnect_ipcp(int argc, ssize_t len = 0; while (argc > 0) { - if (strcmp(*argv, "name") == 0) { + if (matches(*argv, "name") == 0) { name = *(argv + 1); } else if (matches(*argv, "dst") == 0) { dst_name = *(argv + 1); - } else if (matches(*argv, "comp") == 0) { + } else if (matches(*argv, "component") == 0) { comp_name = *(argv + 1); } else { printf("\"%s\" is unknown, try \"irm " |