Revision: 58837
          http://sourceforge.net/p/brlcad/code/58837
Author:   starseeker
Date:     2013-12-05 21:54:27 +0000 (Thu, 05 Dec 2013)
Log Message:
-----------
Use const char * for most of this - can't for bu_optarg - could use another set 
of eyeballs

Modified Paths:
--------------
    brlcad/trunk/src/libbu/getopt.c

Modified: brlcad/trunk/src/libbu/getopt.c
===================================================================
--- brlcad/trunk/src/libbu/getopt.c     2013-12-05 21:40:59 UTC (rev 58836)
+++ brlcad/trunk/src/libbu/getopt.c     2013-12-05 21:54:27 UTC (rev 58837)
@@ -42,8 +42,8 @@
 int
 bu_getopt(int nargc, char * const nargv[], const char *ostr)
 {
-    static char *place = EMSG; /* option letter processing */
-    register char *oli;                /* option letter list index */
+    static const char *place = EMSG;   /* option letter processing */
+    register const char *oli;          /* option letter list index */
 
     if (*place=='\0') {
        /* update scanning pointer */
@@ -80,7 +80,7 @@
        /* need an argument */
        if (*place) {
            /* no white space */
-           bu_optarg = place;
+           bu_optarg = (char *)place;
        } else if (nargc <= ++bu_optind) {
            /* no arg */
            place = EMSG;

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


------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to