fix msvc compile. Cleanup some warnings.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@660 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2006-02-24 00:02:02 +00:00
1 parent 01fd1c3af4
commit dbdad46049
4 files changed
+7 -6

No files matched your search

+3 -3
View File
@@ -38,16 +38,16 @@ SWITCH_DECLARE(char) switch_rfc2833_to_char(int event)
return (event > -1 && event < sizeof(RFC2833_CHARS)) ? RFC2833_CHARS[event] : '\0';
}
SWITCH_DECLARE(int) switch_char_to_rfc2833(char key)
SWITCH_DECLARE(unsigned char) switch_char_to_rfc2833(char key)
{
char *c;
for (c = RFC2833_CHARS; *c ; c++) {
if (*c == key) {
return (c - RFC2833_CHARS);
return (unsigned char)(c - RFC2833_CHARS);
}
}
return -1;
return (unsigned char)-1;
}
SWITCH_DECLARE(unsigned int) switch_separate_string(char *buf, char delim, char **array, int arraylen)