type tweaks.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1449 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
6bf06c5227
commit
3cb9008799
|
@ -111,13 +111,13 @@ static struct xml_section_t SECTIONS[] = {
|
||||||
|
|
||||||
SWITCH_DECLARE(switch_xml_section_t) switch_xml_parse_section_string(char *str)
|
SWITCH_DECLARE(switch_xml_section_t) switch_xml_parse_section_string(char *str)
|
||||||
{
|
{
|
||||||
int x;
|
size_t x;
|
||||||
char buf[1024] = "";
|
char buf[1024] = "";
|
||||||
switch_xml_section_t sections = SWITCH_XML_SECTION_RESULT;
|
switch_xml_section_t sections = SWITCH_XML_SECTION_RESULT;
|
||||||
|
|
||||||
if (str) {
|
if (str) {
|
||||||
for(x = 0; x < strlen(str); x++) {
|
for(x = 0; x < strlen(str); x++) {
|
||||||
buf[x] = tolower(str[x]);
|
buf[x] = (char)tolower(str[x]);
|
||||||
}
|
}
|
||||||
for(x = 0;;x++) {
|
for(x = 0;;x++) {
|
||||||
if (!SECTIONS[x].name) {
|
if (!SECTIONS[x].name) {
|
||||||
|
|
Loading…
Reference in New Issue