Author: ngie Date: Fri Jan 16 21:12:36 2015 New Revision: 277272 URL: https://svnweb.freebsd.org/changeset/base/277272
Log: 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 Modified: head/contrib/ofed/management/opensm/osmtest/main.c Modified: head/contrib/ofed/management/opensm/osmtest/main.c ============================================================================== --- head/contrib/ofed/management/opensm/osmtest/main.c Fri Jan 16 21:08:04 2015 (r277271) +++ head/contrib/ofed/management/opensm/osmtest/main.c Fri Jan 16 21:12:36 2015 (r277272) @@ -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; } } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"