Revision: 55581
          http://sourceforge.net/p/brlcad/code/55581
Author:   carlmoore
Date:     2013-05-29 17:26:43 +0000 (Wed, 29 May 2013)
Log Message:
-----------
implement h,?

Modified Paths:
--------------
    brlcad/trunk/src/util/bwhist.c

Modified: brlcad/trunk/src/util/bwhist.c
===================================================================
--- brlcad/trunk/src/util/bwhist.c      2013-05-29 16:48:40 UTC (rev 55580)
+++ brlcad/trunk/src/util/bwhist.c      2013-05-29 17:26:43 UTC (rev 55581)
@@ -54,6 +54,9 @@
     unsigned char white[3*512];
     FILE *fp;
 
+    if ( BU_STR_EQUAL(argv[1], "-h") || BU_STR_EQUAL(argv[1], "-?") )
+       bu_exit(1, "%s", Usage);
+
     /* check for verbose flag */
     if (argc > 1 && BU_STR_EQUAL(argv[1], "-v")) {
        verbose++;
@@ -72,9 +75,8 @@
        fp = stdin;
 
     /* check usage */
-    if (argc > 1 || isatty(fileno(fp))) {
+    if (argc > 1 || isatty(fileno(fp)))
        bu_exit(1, "%s", Usage);
-    }
 
     for (i = 0; i < 3*512; i++)
        white[i] = 255;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to