Mercurial > pidgin.yaz
diff src/xmlnode.c @ 10736:703f722d076f
[gaim-migrate @ 12338]
Change 2 parameters to "const"
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 26 Mar 2005 19:13:15 +0000 |
parents | 9903182f2aac |
children | 98de05966d6d |
line wrap: on
line diff
--- a/src/xmlnode.c Sat Mar 26 05:23:44 2005 +0000 +++ b/src/xmlnode.c Sat Mar 26 19:13:15 2005 +0000 @@ -186,7 +186,13 @@ } xmlnode* -xmlnode_get_child_with_namespace(xmlnode *parent, const char *name, const char *ns) +xmlnode_get_child(const xmlnode *parent, const char *name) +{ + return xmlnode_get_child_with_namespace(parent, name, NULL); +} + +xmlnode * +xmlnode_get_child_with_namespace(const xmlnode *parent, const char *name, const char *ns) { xmlnode *x, *ret = NULL; char **names; @@ -217,12 +223,6 @@ return ret; } -xmlnode* -xmlnode_get_child(xmlnode *parent, const char *name) -{ - return xmlnode_get_child_with_namespace(parent, name, NULL); -} - char * xmlnode_get_data(xmlnode *node) {