]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
librdmacm/rping: fix duplicate usage message
authorSean Hefty <sean.hefty@intel.com>
Wed, 2 Jul 2008 19:02:35 +0000 (12:02 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 2 Jul 2008 19:02:35 +0000 (12:02 -0700)
Avoid displaying the usage message twice if --help option is used.
Problem reported by Jeff Squyres <jsquyres@cisco.com>.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
examples/rping.c

index a85f398ec7631d1123cde61a558b8c61c6f7d3c2..d47d95a9d9404c704baa6c8fc1f77eb89fe47871 100644 (file)
@@ -1160,7 +1160,7 @@ int main(int argc, char *argv[])
                default:
                        usage("rping");
                        ret = EINVAL;
-                       break;
+                       goto out;
                }
        }
        if (ret)