aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pietri <antoine.pietri@lrde.epita.fr>2015-03-01 22:10:47 +0100
committerAntoine Pietri <antoine.pietri@lrde.epita.fr>2015-03-01 22:13:12 +0100
commitce70e881ee478b9394b5187642484818b31eefdc (patch)
tree98a9b235ab218fc3007d0a9cc6e11431ef4ae442
parenta6b00fcae9af439133a342741e80463db994d620 (diff)
fix imcb_buddy_msg signature to take a const message
-rw-r--r--protocols/bee.h2
-rw-r--r--protocols/bee_user.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/bee.h b/protocols/bee.h
index d90c3760..36ff2889 100644
--- a/protocols/bee.h
+++ b/protocols/bee.h
@@ -153,7 +153,7 @@ G_MODULE_EXPORT void imcb_buddy_status(struct im_connection *ic, const char *han
G_MODULE_EXPORT void imcb_buddy_status_msg(struct im_connection *ic, const char *handle, const char *message);
G_MODULE_EXPORT void imcb_buddy_times(struct im_connection *ic, const char *handle, time_t login, time_t idle);
/* Call when a handle says something. 'flags' and 'sent_at may be just 0. */
-G_MODULE_EXPORT void imcb_buddy_msg(struct im_connection *ic, const char *handle, char *msg, guint32 flags,
+G_MODULE_EXPORT void imcb_buddy_msg(struct im_connection *ic, const char *handle, const char *msg, guint32 flags,
time_t sent_at);
/* bee_chat.c */
diff --git a/protocols/bee_user.c b/protocols/bee_user.c
index 0a211c71..2eb24997 100644
--- a/protocols/bee_user.c
+++ b/protocols/bee_user.c
@@ -246,7 +246,7 @@ void imcb_buddy_times(struct im_connection *ic, const char *handle, time_t login
bu->idle_time = idle;
}
-void imcb_buddy_msg(struct im_connection *ic, const char *handle, char *msg, uint32_t flags, time_t sent_at)
+void imcb_buddy_msg(struct im_connection *ic, const char *handle, const char *msg, uint32_t flags, time_t sent_at)
{
bee_t *bee = ic->bee;
bee_user_t *bu;