From 89472a58efbbf49b8456c3a49362ac6c2f90a441 Mon Sep 17 00:00:00 2001 From: Vladimir Weinstein Date: Thu, 4 May 2000 22:41:23 +0000 Subject: [PATCH] ICU-375 removed complaints by Solaris CC X-SVN-Rev: 1334 --- icu4c/source/common/udata.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/icu4c/source/common/udata.c b/icu4c/source/common/udata.c index 0f4ec21794..ea0a7d8615 100644 --- a/icu4c/source/common/udata.c +++ b/icu4c/source/common/udata.c @@ -147,7 +147,7 @@ # include # endif - typedef const void *Library; + typedef void *Library; # define NO_LIBRARY NULL # define IS_LIBRARY(lib) ((lib)!=NULL) @@ -377,7 +377,7 @@ typedef struct { static void uprv_unmapFile(UDataMemory *pData) { if(pData!=NULL && pData->map>0) { - if(munmap(pData->pHeader, pData->map)==-1) { + if(munmap((void *)pData->pHeader, pData->map)==-1) { perror("munmap"); } pData->pHeader=NULL; @@ -540,7 +540,7 @@ setCommonICUData(UDataMemory *pData) { umtx_lock(NULL); if(!IS_DATA_MEMORY_LOADED(&commonICUData)) { uprv_memcpy(&commonICUData, pData, sizeof(UDataMemory)); - commonICUData.flags&=~(1<parent=pCommonData; pEntryData->pHeader=pHeader; - pEntryData->flags=pCommonData->flags&DATA_MEMORY_TYPE_MASK|1<flags=pCommonData->flags&DATA_MEMORY_TYPE_MASK|1UL<flags&(1<flags&(1UL<flags&DATA_MEMORY_TYPE_MASK) { case FLAT_DATA_MEMORY: if(IS_MAP(pData->map)) { @@ -1056,7 +1056,7 @@ U_CAPI void U_EXPORT2 udata_close(UDataMemory *pData) { if(pData!=NULL && IS_DATA_MEMORY_LOADED(pData)) { unloadDataMemory(pData); - if(pData->flags&(1<flags&(1UL<parent==pData+1) { /* this data entry was allocated together with its parent */ unloadDataMemory(pData+1);