/pidgin/main: 215bec3b763a: Add const to the API, where needed

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Mon Oct 22 15:11:38 EDT 2012


Changeset: 215bec3b763a6158926bc956e681f959ef11aa06
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2012-10-22 21:11 +0200
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/215bec3b763a

Description:

Add const to the API, where needed

diffstat:

 libpurple/ft.c |  2 +-
 libpurple/ft.h |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff --git a/libpurple/ft.c b/libpurple/ft.c
--- a/libpurple/ft.c
+++ b/libpurple/ft.c
@@ -319,7 +319,7 @@ purple_xfer_conversation_write_internal(
 }
 
 void
-purple_xfer_conversation_write(PurpleXfer *xfer, gchar *message,
+purple_xfer_conversation_write(PurpleXfer *xfer, const gchar *message,
 	gboolean is_error)
 {
 	purple_xfer_conversation_write_internal(xfer, message, is_error, FALSE);
diff --git a/libpurple/ft.h b/libpurple/ft.h
--- a/libpurple/ft.h
+++ b/libpurple/ft.h
@@ -705,7 +705,7 @@ void purple_xfer_update_progress(PurpleX
  * @param message The message to display.
  * @param is_error Is this an error message?.
  */
-void purple_xfer_conversation_write(PurpleXfer *xfer, char *message, gboolean is_error);
+void purple_xfer_conversation_write(PurpleXfer *xfer, const gchar *message, gboolean is_error);
 
 /**
  * Allows the UI to signal it's ready to send/receive data (depending on



More information about the Commits mailing list