]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10112: switch_xml - Renaming a C variable name and type (No behavior change)
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Wed, 8 Mar 2017 21:41:12 +0000 (16:41 -0500)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Wed, 8 Mar 2017 21:41:12 +0000 (16:41 -0500)
src/switch_xml.c

index 449fe7c206226f3c3280eeb373823b47a044d14a..4ef0e9ec6cbe33223333bf741da4caa9abccc03a 100644 (file)
@@ -1879,18 +1879,18 @@ static void do_merge(switch_xml_t in, switch_xml_t src, const char *container, c
                        const char *var = switch_xml_attr(param, "name");
                        const char *val = switch_xml_attr(param, "value");
 
-                       int go = 1;
+                       switch_bool_t add_child = SWITCH_TRUE;
 
                        for (iparam = switch_xml_child(itag, tag_name); iparam; iparam = iparam->next) {
                                const char *ivar = switch_xml_attr(iparam, "name");
 
                                if (var && ivar && !strcasecmp(var, ivar)) {
-                                       go = 0;
+                                       add_child = SWITCH_FALSE;
                                        break;
                                }
                        }
 
-                       if (go) {
+                       if (add_child) {
                                iitag = switch_xml_add_child_d(itag, tag_name, 0);
                                switch_xml_set_attr_d(iitag, "name", var);
                                switch_xml_set_attr_d(iitag, "value", val);