diff --git a/icu4c/source/common/unames.c b/icu4c/source/common/unames.c index bac76ee950f..ad84575ac8c 100644 --- a/icu4c/source/common/unames.c +++ b/icu4c/source/common/unames.c @@ -127,7 +127,7 @@ enumAlgNames(AlgorithmicRange *range, static UChar32 findAlgName(AlgorithmicRange *range, UCharNameChoice nameChoice, const char *otherName); -static UBool +U_CFUNC UBool findNameDummy(void *context, UChar32 code, UCharNameChoice nameChoice, const char *name, UTextOffset length); @@ -1158,7 +1158,7 @@ findAlgName(AlgorithmicRange *range, UCharNameChoice nameChoice, const char *oth } /* this is a dummy function that is used as a "find not enumerate" flag */ -static UBool +U_CFUNC UBool findNameDummy(void *context, UChar32 code, UCharNameChoice nameChoice, const char *name, UTextOffset length) { diff --git a/icu4c/source/common/ustring.c b/icu4c/source/common/ustring.c index 6ca59026a94..9ddbd0711e7 100644 --- a/icu4c/source/common/ustring.c +++ b/icu4c/source/common/ustring.c @@ -501,7 +501,7 @@ u_strCaseMap(UChar *dest, int32_t destCapacity, temp=buffer; } else { /* allocate a buffer */ - temp=uprv_malloc(destCapacity*U_SIZEOF_UCHAR); + temp=(UChar *)uprv_malloc(destCapacity*U_SIZEOF_UCHAR); if(temp==NULL) { *pErrorCode=U_MEMORY_ALLOCATION_ERROR; return 0;