diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-12-06 11:02:18 +0000 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-12-06 11:02:18 +0000 |
commit | 82ae7959d21c654fe9fd14de504f47d18b1ebcfc (patch) | |
tree | 6c00500dd93460dae01eea5fb3f5bc17e018c57e /src/tools/irm/irm_unbind_api.c | |
parent | d68efc18d65217afa8a0ad2f300697ee1088b44f (diff) | |
parent | c17641d483279151748dc7cec8e9e44b0da11623 (diff) | |
download | ouroboros-82ae7959d21c654fe9fd14de504f47d18b1ebcfc.tar.gz ouroboros-82ae7959d21c654fe9fd14de504f47d18b1ebcfc.zip |
Merged in dstaesse/ouroboros/be-bind (pull request #318)
Be bind
Diffstat (limited to 'src/tools/irm/irm_unbind_api.c')
-rw-r--r-- | src/tools/irm/irm_unbind_api.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/irm/irm_unbind_api.c b/src/tools/irm/irm_unbind_api.c index d332f438..fdfc2374 100644 --- a/src/tools/irm/irm_unbind_api.c +++ b/src/tools/irm/irm_unbind_api.c @@ -33,7 +33,8 @@ static void usage(void) { printf("Usage: irm unbind api <pid>\n" - " [name <name>, omit: remove all AP-I info]\n"); + " [name <name> (default: remove all AP-I info)]" + "\n"); } int do_unbind_api(int argc, char ** argv) @@ -41,7 +42,7 @@ int do_unbind_api(int argc, char ** argv) pid_t api = -1; char * name = NULL; - while (argc > 0) { + while (argc > 1) { if (matches(*argv, "name") == 0) { name = *(argv + 1); ++argv; |