[ofw] [PATCH] infiniband-diags: -V, --version: exit with zero status

Sasha Khapyorsky sashak at voltaire.com
Tue Jan 12 01:22:46 PST 2010


When -V, --version command line option is used exit with zero status
after a version showing.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---

On 08:03 Tue 05 Jan     , Sean Hefty wrote:
> 
> Changes to the above components should be made to Sasha's tree first, or they
> risk being lost when I update the windows copy.

 infiniband-diags/src/ibdiag_common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;
-- 
1.6.6




More information about the ofw mailing list