diff libpurple/protocols/simple/sipmsg.h @ 21024:61a87e02da29

Some constification, which also found and fixed some potential double-free errors.
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 27 Oct 2007 13:12:27 +0000
parents 44b4e8bd759b
children 44f53d3fc54f
line wrap: on
line diff
--- a/libpurple/protocols/simple/sipmsg.h	Fri Oct 26 13:22:49 2007 +0000
+++ b/libpurple/protocols/simple/sipmsg.h	Sat Oct 27 13:12:27 2007 +0000
@@ -43,7 +43,7 @@
 struct sipmsg *sipmsg_parse_header(const gchar *header);
 void sipmsg_add_header(struct sipmsg *msg, const gchar *name, const gchar *value);
 void sipmsg_free(struct sipmsg *msg);
-gchar *sipmsg_find_header(struct sipmsg *msg, const gchar *name);
+const gchar *sipmsg_find_header(struct sipmsg *msg, const gchar *name);
 void sipmsg_remove_header(struct sipmsg *msg, const gchar *name);
 void sipmsg_print(const struct sipmsg *msg);
 char *sipmsg_to_string(const struct sipmsg *msg);