Revision: 41342
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41342&view=rev
Author:   brlcad
Date:     2010-11-12 21:58:16 +0000 (Fri, 12 Nov 2010)

Log Message:
-----------
unbreak build due to type warnings.  fixit.

Modified Paths:
--------------
    brlcad/trunk/src/libbu/malloc.c
    brlcad/trunk/src/libbu/tcl.c

Modified: brlcad/trunk/src/libbu/malloc.c
===================================================================
--- brlcad/trunk/src/libbu/malloc.c     2010-11-12 21:52:30 UTC (rev 41341)
+++ brlcad/trunk/src/libbu/malloc.c     2010-11-12 21:58:16 UTC (rev 41342)
@@ -441,7 +441,7 @@
      * requested memory and we need to bomb.
      */
     if (UNLIKELY(!ptr)) {
-       fprintf(stderr, "bu_realloc(): unable to allocate requested memory of 
size %d, %s\n", siz, str);
+       fprintf(stderr, "bu_realloc(): unable to allocate requested memory of 
size %ld, %s\n", siz, str);
        bu_bomb("bu_realloc(): unable to allocate requested memory.\n");
     }
 

Modified: brlcad/trunk/src/libbu/tcl.c
===================================================================
--- brlcad/trunk/src/libbu/tcl.c        2010-11-12 21:52:30 UTC (rev 41341)
+++ brlcad/trunk/src/libbu/tcl.c        2010-11-12 21:58:16 UTC (rev 41342)
@@ -317,7 +317,7 @@
        snprintf(buf, TINYBUFSIZ, "%d", listc);
        Tcl_AppendResult(interp, "bu_get_value_by_keyword: odd # of items in 
list (", buf, ").\n", (char *)NULL);
        if (tofree)
-           Tcl_Free(tofree); /* not bu_free() */
+           Tcl_Free((char *)tofree); /* not bu_free() */
        return TCL_ERROR;
     }
 
@@ -337,7 +337,7 @@
                Tcl_AppendResult(interp, listv[i+1], (char *)NULL);
            }
            if (tofree)
-               Tcl_Free(tofree); /* not bu_free() */
+               Tcl_Free((char *)tofree); /* not bu_free() */
            return TCL_OK;
        }
     }
@@ -345,7 +345,7 @@
     /* Not found */
     Tcl_AppendResult(interp, "bu_get_value_by_keyword: keyword '", iwant, "' 
not found in list\n", (char *)NULL);
     if (tofree)
-       Tcl_Free(tofree); /* not bu_free() */
+       Tcl_Free((char *)tofree); /* not bu_free() */
     return TCL_ERROR;
 }
 


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

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to