diff mbox

infiniband-diags: -V, --version: exit with zero status

Message ID 20100112092246.GE26089@me (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Sasha Khapyorsky Jan. 12, 2010, 9:22 a.m. UTC
None
diff mbox

Patch

diff --git a/infiniband-diags/src/ibdiag_common.c b/infiniband-diags/src/ibdiag_common.c
index 735b898..99861f1 100644
--- a/infiniband-diags/src/ibdiag_common.c
+++ b/infiniband-diags/src/ibdiag_common.c
@@ -147,7 +147,7 @@  static int process_opt(int ch, char *optarg)
 		break;
 	case 'V':
 		fprintf(stderr, "%s %s\n", prog_name, get_build_version());
-		exit(2);
+		exit(0);
 	case 'e':
 		madrpc_show_errors(1);
 		break;