ICU-3847 Fix some compiler errors and warnings.

X-SVN-Rev: 15883
This commit is contained in:
George Rhoten 2004-06-15 22:36:18 +00:00
parent 6c34ce45ed
commit c59373cb93

View file

@ -201,7 +201,6 @@ CharList *pkg_appendToList(CharList *l, CharList** end, const char *str)
CharList *pkg_appendUniqueDirToList(CharList *l, CharList** end, const char *strAlias) {
char aBuf[1024];
char *rPtr;
char *aPtr = NULL;
rPtr = uprv_strrchr(strAlias, U_FILE_SEP_CHAR);
#if defined(U_FILE_ALT_SEP_CHAR) && (U_FILE_SEP_CHAR != U_FILE_ALT_SEP_CHAR)
aPtr = uprv_strrchr(strAlias, U_FILE_ALT_SEP_CHAR);
@ -221,12 +220,13 @@ CharList *pkg_appendUniqueDirToList(CharList *l, CharList** end, const char *str
aBuf[rPtr-strAlias]=0; /* no trailing slash */
if(!pkg_listContains(l, aBuf)) {
return pkg_appendToList(l, end, strdup(aBuf));
return pkg_appendToList(l, end, uprv_strdup(aBuf));
} else {
return l; /* already found */
}
}
#if 0
static CharList *
pkg_appendFromStrings(CharList *l, CharList** end, const char *s, int32_t len)
{
@ -258,6 +258,7 @@ pkg_appendFromStrings(CharList *l, CharList** end, const char *s, int32_t len)
return l;
}
#endif
/*