diff options
author | ngie <ngie@FreeBSD.org> | 2015-01-16 21:12:36 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-01-16 21:12:36 +0000 |
commit | 96da0c1c63a35ba3aca3a9ef55e32fde9bdf7964 (patch) | |
tree | c4b3f9695cec94083986599be709745840553a20 /contrib/ofed/management | |
parent | 2b7d8bc28a6daf82229d2344a793578296c83d0c (diff) | |
download | FreeBSD-src-96da0c1c63a35ba3aca3a9ef55e32fde9bdf7964.zip FreeBSD-src-96da0c1c63a35ba3aca3a9ef55e32fde9bdf7964.tar.gz |
Don't call abort on usage errors; print out the usage message instead
PR: 196793
MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/ofed/management')
-rw-r--r-- | contrib/ofed/management/opensm/osmtest/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/ofed/management/opensm/osmtest/main.c b/contrib/ofed/management/opensm/osmtest/main.c index f87e33b..8bb3b80 100644 --- a/contrib/ofed/management/opensm/osmtest/main.c +++ b/contrib/ofed/management/opensm/osmtest/main.c @@ -565,8 +565,9 @@ int main(int argc, char *argv[]) printf("Done with args\n"); break; - default: /* something wrong */ - abort(); + default: + show_usage(); + return 1; } } |