Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Histogram
changeset 22:6cee2e00eacb MC_shared
added casts to fix compile warnings
| author | Some Random Person <seanhalle@yahoo.com> |
|---|---|
| date | Mon, 12 Mar 2012 05:40:42 -0700 |
| parents | 4d9af65ad3df |
| children | 0d2f5b1db610 |
| files | Histogram.c |
| diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/Histogram.c Fri Mar 09 22:16:40 2012 -0800 1.2 +++ b/Histogram.c Mon Mar 12 05:40:42 2012 -0700 1.3 @@ -6,6 +6,7 @@ 1.4 * 1.5 */ 1.6 #include <stdio.h> 1.7 +#include <string.h> 1.8 #include "Histogram.h" 1.9 1.10 1.11 @@ -68,7 +69,8 @@ 1.12 hist = VMS_int__malloc( sizeof(Histogram) ); 1.13 hist->bins = VMS_int__malloc( numBins * sizeof(int32) ); 1.14 1.15 - makeHist_helper( hist, numBins, startOfRange, binWidth,VMS_int__strDup(name)); 1.16 + char *nameCopy = (char *)VMS_int__strDup(name); 1.17 + makeHist_helper( hist, numBins, startOfRange, binWidth, nameCopy); 1.18 1.19 return hist; 1.20 }
