Mercurial > pidgin.yaz
diff libpurple/xmlnode.c @ 30686:77cd42f08ba1
const-ify the xmlnode* parameter to xmlnode_get_attrib(_with_namespace)
This doesn't break A[BP]I, right? It seems sane to me and is needed
for my next commit (using const xmlnode*s)
| author | Paul Aurich <paul@darkrain42.org> |
|---|---|
| date | Sat, 10 Jul 2010 00:56:11 +0000 |
| parents | 05d727f76ca9 |
| children | 61d160a4689f c9244d8303ce |
line wrap: on
line diff
--- a/libpurple/xmlnode.c Sat Jul 10 00:35:52 2010 +0000 +++ b/libpurple/xmlnode.c Sat Jul 10 00:56:11 2010 +0000 @@ -223,7 +223,7 @@ const char * -xmlnode_get_attrib(xmlnode *node, const char *attr) +xmlnode_get_attrib(const xmlnode *node, const char *attr) { xmlnode *x; @@ -240,9 +240,9 @@ } const char * -xmlnode_get_attrib_with_namespace(xmlnode *node, const char *attr, const char *xmlns) +xmlnode_get_attrib_with_namespace(const xmlnode *node, const char *attr, const char *xmlns) { - xmlnode *x; + const xmlnode *x; g_return_val_if_fail(node != NULL, NULL); g_return_val_if_fail(attr != NULL, NULL);
