Skip to content

Commit

Permalink
Clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell committed May 15, 2023
1 parent 2dcd967 commit 8e220cf
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions util/xmlutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -2030,12 +2030,13 @@ element_attribute (element_t element, const gchar *name)
element_t
element_first_child (element_t element)
{
if (element) {
element = element->children;
while (element && (element->type != XML_ELEMENT_NODE))
element = element->next;
return element;
}
if (element)
{
element = element->children;
while (element && (element->type != XML_ELEMENT_NODE))
element = element->next;
return element;
}
return NULL;
}

Expand All @@ -2049,12 +2050,13 @@ element_first_child (element_t element)
element_t
element_next (element_t element)
{
if (element) {
element = element->next;
while (element && (element->type != XML_ELEMENT_NODE))
if (element)
{
element = element->next;
return element;
}
while (element && (element->type != XML_ELEMENT_NODE))
element = element->next;
return element;
}
return NULL;
}

Expand Down

0 comments on commit 8e220cf

Please sign in to comment.