]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
dos2unix
authorMichael Jerris <mike@jerris.com>
Wed, 27 May 2009 04:21:51 +0000 (04:21 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 27 May 2009 04:21:51 +0000 (04:21 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13456 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_xml.c

index b68107f4b993c4ed5e2cc8072f237c33fbfa7d42..eb691f4575f009f5a7c73be06d2e864f3b64a0a3 100644 (file)
@@ -2325,9 +2325,9 @@ SWITCH_DECLARE(switch_xml_t) switch_xml_new(const char *name)
        static const char *ent[] = { "lt;", "&#60;", "gt;", "&#62;", "quot;", "&#34;",
                "apos;", "&#39;", "amp;", "&#38;", NULL
        };
-       switch_xml_root_t root = (switch_xml_root_t) malloc(sizeof(struct switch_xml_root));\r
-       if (!root) return NULL;\r
-       memset(root, '\0', sizeof(struct switch_xml_root));\r
+       switch_xml_root_t root = (switch_xml_root_t) malloc(sizeof(struct switch_xml_root));
+       if (!root) return NULL;
+       memset(root, '\0', sizeof(struct switch_xml_root));
        root->xml.name = (char *) name;
        root->cur = &root->xml;
        strcpy(root->err, root->xml.txt = (char *)"");
@@ -2383,8 +2383,8 @@ SWITCH_DECLARE(switch_xml_t) switch_xml_add_child(switch_xml_t xml, const char *
        switch_xml_t child;
 
        if (!xml) return NULL;
-       if (!(child = (switch_xml_t) malloc(sizeof(struct switch_xml)))) return NULL;\r
-       memset(child, '\0', sizeof(struct switch_xml));\r
+       if (!(child = (switch_xml_t) malloc(sizeof(struct switch_xml)))) return NULL;
+       memset(child, '\0', sizeof(struct switch_xml));
        child->name = (char *) name;
        child->attr = SWITCH_XML_NIL;
        child->off = off;