Signed-off-by: stan smith <[email protected]>

Revision: 2756
Author: stansmith
Date: 10:35:20 AM, Monday, March 29, 2010
Message:
[opensm] fix missing option arg handling to be correct.
----
Modified : /gen1/trunk/ulp/opensm/user/libvendor/winosm_common.c


--- A/ulp/opensm/user/libvendor/winosm_common.c Mon Mar 29 10:32:40 2010
+++ B/ulp/opensm/user/libvendor/winosm_common.c Fri Mar 26 13:23:04 2010
@@ -256,7 +256,11 @@
                             chOpt = '?';
                             if ((longopts[i].has_arg == required_argument) && 
opterr)
                            {
-                             fprintf (stderr, "Option %s requires 
argument\n",tok);
+                             fprintf (stderr,
+                                    "Option '--%s' requires an 
argument\n",tok);
+                             iArg++;
+                             optind++;
+                             break;
                            }

                         }else
_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to