Commit eb115b0d authored by Dafydd Harries's avatar Dafydd Harries

mark more parameters as const char *

darcs-hash:20070212151914-c9803-0ff3d6d6a9a88d216bd685986195aba8e8ab9f84.gz
parent 232e5d5e
......@@ -181,7 +181,7 @@ stun_attribute_dump (StunAttribute *attr)
}
void
stun_message_init (StunMessage *msg, guint type, gchar *id)
stun_message_init (StunMessage *msg, guint type, const gchar *id)
{
msg->type = type;
......@@ -190,7 +190,7 @@ stun_message_init (StunMessage *msg, guint type, gchar *id)
}
StunMessage *
stun_message_new (guint type, gchar *id, guint n_attributes)
stun_message_new (guint type, const gchar *id, guint n_attributes)
{
StunMessage *msg = g_slice_new0 (StunMessage);
......@@ -220,7 +220,7 @@ stun_message_free (StunMessage *msg)
}
StunMessage *
stun_message_unpack (guint length, gchar *s)
stun_message_unpack (guint length, const gchar *s)
{
guint attr_length;
guint n_attributes = 0;
......
......@@ -100,11 +100,11 @@ StunAttribute *
stun_attribute_unpack (guint length, const gchar *s);
void
stun_message_init (StunMessage *msg, guint type, gchar *id);
stun_message_init (StunMessage *msg, guint type, const gchar *id);
G_GNUC_WARN_UNUSED_RESULT
StunMessage *
stun_message_new (guint type, gchar *id, guint n_attributes);
stun_message_new (guint type, const gchar *id, guint n_attributes);
void
stun_message_free (StunMessage *msg);
......@@ -119,7 +119,7 @@ stun_message_dump (StunMessage *msg);
G_GNUC_WARN_UNUSED_RESULT
StunMessage *
stun_message_unpack (guint length, gchar *s);
stun_message_unpack (guint length, const gchar *s);
G_END_DECLS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment