ICU-452 Fix compiler warnings.

X-SVN-Rev: 5898
This commit is contained in:
Ram Viswanadha 2001-09-22 03:00:46 +00:00
parent ece4a93414
commit 57e8a5498c
2 changed files with 7 additions and 6 deletions

View file

@ -726,7 +726,7 @@ u_strFromWCS(UChar *dest,
* which must not indicate a failure before the function call.
* @retrun The pointer to destination buffer.
*/
U_CAPI uint8_t* U_EXPORT2
U_CAPI char* U_EXPORT2
u_strToUTF8(uint8_t *dest,
int32_t destCapacity,
int32_t *pDestLength,
@ -756,7 +756,7 @@ U_CAPI UChar* U_EXPORT2
u_strFromUTF8(UChar *dest,
int32_t destCapacity,
int32_t *pDestLength,
const uint8_t *src,
const char *src,
int32_t srcLength,
UErrorCode *pErrorCode);

View file

@ -217,7 +217,7 @@ U_CAPI UChar* U_EXPORT2
u_strFromUTF8(UChar *dest,
int32_t destCapacity,
int32_t *pDestLength,
const uint8_t *pSrc,
const char* src,
int32_t srcLength,
UErrorCode *pErrorCode){
@ -226,7 +226,8 @@ u_strFromUTF8(UChar *dest,
UChar32 ch=0;
int32_t index = 0;
int32_t reqLength = 0;
uint8_t* pSrc = (uint8_t*) src;
/* args check */
if(pErrorCode && U_FAILURE(*pErrorCode)){
return NULL;
@ -289,7 +290,7 @@ u_strFromUTF8(UChar *dest,
return dest;
}
U_CAPI uint8_t* U_EXPORT2
U_CAPI char* U_EXPORT2
u_strToUTF8(uint8_t *dest,
int32_t destCapacity,
int32_t *pDestLength,
@ -369,7 +370,7 @@ u_strToUTF8(uint8_t *dest,
/* Terminate the buffer */
u_terminateChars((char*)dest,destCapacity,reqLength,pErrorCode);
return dest;
return (char*)dest;
}
/* helper function */