Date: Mon, 19 Jan 2015 07:19:57 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r277369 - stable/10/contrib/ofed/management/opensm/osmtest Message-ID: <201501190719.t0J7JvWq045874@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Mon Jan 19 07:19:56 2015 New Revision: 277369 URL: https://svnweb.freebsd.org/changeset/base/277369 Log: 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 Modified: stable/10/contrib/ofed/management/opensm/osmtest/main.c Directory Properties: stable/10/ (props changed) Modified: stable/10/contrib/ofed/management/opensm/osmtest/main.c ============================================================================== --- stable/10/contrib/ofed/management/opensm/osmtest/main.c Mon Jan 19 07:18:59 2015 (r277368) +++ stable/10/contrib/ofed/management/opensm/osmtest/main.c Mon Jan 19 07:19:56 2015 (r277369) @@ -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; } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501190719.t0J7JvWq045874>