aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-09-28 12:18:19 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2008-09-28 12:18:19 +0100
commit94acdd0d7beaa659a5f6b26673c5dea5dbcc4496 (patch)
treec3b60c834729b4b52d9bc0230dbc7f89a2acb03a /lib
parente180c59a7796bb651b96ffaa5757e4688f1d3cc6 (diff)
Restored support for password-protected chatrooms (for now only by accepting
a password in the IRC JOIN command).
Diffstat (limited to 'lib')
-rw-r--r--lib/xmltree.c2
-rw-r--r--lib/xmltree.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/xmltree.c b/lib/xmltree.c
index e65b4f41..67fe46e1 100644
--- a/lib/xmltree.c
+++ b/lib/xmltree.c
@@ -471,7 +471,7 @@ char *xt_find_attr( struct xt_node *node, const char *key )
return node->attr[i].value;
}
-struct xt_node *xt_new_node( char *name, char *text, struct xt_node *children )
+struct xt_node *xt_new_node( char *name, const char *text, struct xt_node *children )
{
struct xt_node *node, *c;
diff --git a/lib/xmltree.h b/lib/xmltree.h
index 10677412..34e3be68 100644
--- a/lib/xmltree.h
+++ b/lib/xmltree.h
@@ -89,7 +89,7 @@ void xt_free( struct xt_parser *xt );
struct xt_node *xt_find_node( struct xt_node *node, const char *name );
char *xt_find_attr( struct xt_node *node, const char *key );
-struct xt_node *xt_new_node( char *name, char *text, struct xt_node *children );
+struct xt_node *xt_new_node( char *name, const char *text, struct xt_node *children );
void xt_add_child( struct xt_node *parent, struct xt_node *child );
void xt_add_attr( struct xt_node *node, const char *key, const char *value );
int xt_remove_attr( struct xt_node *node, const char *key );