diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-03-03 14:09:57 +0100 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-03-03 14:09:57 +0100 |
commit | bd2dc6141b59d8fe67e7765b5dfce5b819ed7e33 (patch) | |
tree | a4dbd276895813f49c40d06ebb35111e25e8e874 /src/tools/irm/irm.c | |
parent | ccbfc46ada3317b0f3655b751d473643d4dcab72 (diff) | |
download | ouroboros-bd2dc6141b59d8fe67e7765b5dfce5b819ed7e33.tar.gz ouroboros-bd2dc6141b59d8fe67e7765b5dfce5b819ed7e33.zip |
tools: irm: Provide all IRM calls
This commit makes all IRM calls available to the user of the 'irm'
tool. The bootstrap_ipcp call does not yet take the anything except
the AP name. This will be added once we stabilize what should be
configurable in the IPCP.
Diffstat (limited to 'src/tools/irm/irm.c')
-rw-r--r-- | src/tools/irm/irm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/irm/irm.c b/src/tools/irm/irm.c index cca8def4..44018b90 100644 --- a/src/tools/irm/irm.c +++ b/src/tools/irm/irm.c @@ -33,8 +33,7 @@ static void usage() printf("Usage: irm [OPERATION]\n\n" "where OPERATION = {create_ipcp destroy_ipcp \n" " bootstrap_ipcp enroll_ipcp\n" - " register_ipcp unregister_ipcp\n" - " help}\n"); + " register_ipcp unregister_ipcp\n"); } static int do_help(int argc, char **argv) @@ -65,10 +64,11 @@ static int do_cmd(const char * argv0, for (c = cmds; c->cmd; ++c) { if (matches(argv0, c->cmd) == 0) - return -(c->func(argc-1, argv+1)); + return c->func(argc - 1, argv + 1); } fprintf(stderr, "\"%s\" is unknown, try \"irm help\".\n", argv0); + return -1; } @@ -80,5 +80,5 @@ int main (int argc, char ** argv) { return 0; } - return do_cmd(argv[1], argc-1, argv+1); + return do_cmd(argv[1], argc - 1, argv + 1); } |