Skip to content

Commit

Permalink
Don't call abort on usage errors; print out the usage message instead
Browse files Browse the repository at this point in the history
PR: 196793
MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division


git-svn-id: svn+ssh://svn.freebsd.org/base/head@277272 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  • Loading branch information
ngie committed Jan 16, 2015
1 parent a0ebd9c commit 67c32d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contrib/ofed/management/opensm/osmtest/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
Expand Down

0 comments on commit 67c32d8

Please sign in to comment.