# HG changeset patch # User Some Random Person # Date 1331556042 25200 # Node ID 6cee2e00eacb81873d6728e6e9f9c406c9ac10f1 # Parent 4d9af65ad3df235a22655c6e94fb9598853b678d added casts to fix compile warnings diff -r 4d9af65ad3df -r 6cee2e00eacb Histogram.c --- a/Histogram.c Fri Mar 09 22:16:40 2012 -0800 +++ b/Histogram.c Mon Mar 12 05:40:42 2012 -0700 @@ -6,6 +6,7 @@ * */ #include +#include #include "Histogram.h" @@ -68,7 +69,8 @@ hist = VMS_int__malloc( sizeof(Histogram) ); hist->bins = VMS_int__malloc( numBins * sizeof(int32) ); - makeHist_helper( hist, numBins, startOfRange, binWidth,VMS_int__strDup(name)); + char *nameCopy = (char *)VMS_int__strDup(name); + makeHist_helper( hist, numBins, startOfRange, binWidth, nameCopy); return hist; }