diff options
author | ngie <ngie@FreeBSD.org> | 2015-01-19 07:19:56 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-01-19 07:19:56 +0000 |
commit | f219f816a2ea19f2d7db96ed5d0504910b55f4a9 (patch) | |
tree | 84fcbed9814ad5338f78ac1b0483a534cc3d0ce7 | |
parent | 544eb7ca086177ee94d5fd95014daa503f678669 (diff) | |
download | FreeBSD-src-f219f816a2ea19f2d7db96ed5d0504910b55f4a9.zip FreeBSD-src-f219f816a2ea19f2d7db96ed5d0504910b55f4a9.tar.gz |
MFC r277272:
r277272 (by ngie):
Don't call abort on usage errors; print out the usage message instead
PR: 196793
Sponsored by: EMC / Isilon Storage Division
-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; } } |