Revision: 56979
          http://sourceforge.net/p/brlcad/code/56979
Author:   tbrowder2
Date:     2013-08-20 11:07:43 +0000 (Tue, 20 Aug 2013)
Log Message:
-----------
simplify progname handling

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

Modified: brlcad/trunk/src/util/dsp_add.c
===================================================================
--- brlcad/trunk/src/util/dsp_add.c     2013-08-20 11:04:48 UTC (rev 56978)
+++ brlcad/trunk/src/util/dsp_add.c     2013-08-20 11:07:43 UTC (rev 56979)
@@ -38,7 +38,7 @@
 
 /* declarations to support use of bu_getopt() system call */
 const char optstring[] = "h?";
-char *progname = "dsp_add";
+const char progname[] = "dsp_add";
 const char usage[] = "Usage: %s dsp_1 dsp_2 > dsp_3\n";
 
 /* purpose: combine two dsp files
@@ -77,7 +77,7 @@
     int c;
     char *strrchr(const char *, int);
 
-    if (! (progname=strrchr(*av, '/')))
+    if (!(progname = strrchr(*av, '/')))
        progname = *av;
     else
        ++progname;

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


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to