/soc/2015/igor.gajowiak/chatlog: 1411e9725a5e: Fixed compiler wa...

Igor Gajowiak igor.gajowiak at gmail.com
Wed Jul 22 14:58:03 EDT 2015


Changeset: 1411e9725a5e7208bc0a9d95fda3051a8ab97777
Author:	 Igor Gajowiak <igor.gajowiak at gmail.com>
Date:	 2015-07-22 20:57 +0200
Branch:	 default
URL: https://hg.pidgin.im/soc/2015/igor.gajowiak/chatlog/rev/1411e9725a5e

Description:

Fixed compiler warnings.

diffstat:

 libpurple/plugins/log/logsqlite.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (26 lines):

diff --git a/libpurple/plugins/log/logsqlite.c b/libpurple/plugins/log/logsqlite.c
--- a/libpurple/plugins/log/logsqlite.c
+++ b/libpurple/plugins/log/logsqlite.c
@@ -414,14 +414,14 @@ sqlitelog_get_unseen_msgs_impl(PurpleAcc
 	while ((rc = sqlite3_step(get_unseen_msgs_q)) == SQLITE_ROW) {
 		unsigned id = sqlite3_column_int(get_unseen_msgs_q,
 			GET_UNSEEN_MSGS_QUERY_COL_ID);
-		const char *author = sqlite3_column_text(get_unseen_msgs_q,
-			GET_UNSEEN_MSGS_QUERY_COL_AUTHOR);
-		const char *author_alias = sqlite3_column_text(get_unseen_msgs_q,
-			GET_UNSEEN_MSGS_QUERY_COL_AUTHORALIAS);
-		const char *recipient = sqlite3_column_text(get_unseen_msgs_q,
-			GET_UNSEEN_MSGS_QUERY_COL_RECIPIENT);
-		const char *contents = sqlite3_column_text(get_unseen_msgs_q,
-			GET_UNSEEN_MSGS_QUERY_COL_CONTENTS);
+		const char *author = (const char*) sqlite3_column_text(
+			get_unseen_msgs_q, GET_UNSEEN_MSGS_QUERY_COL_AUTHOR);
+		const char *author_alias = (const char*) sqlite3_column_text(
+			get_unseen_msgs_q, GET_UNSEEN_MSGS_QUERY_COL_AUTHORALIAS);
+		const char *recipient = (const char*) sqlite3_column_text(
+			get_unseen_msgs_q, GET_UNSEEN_MSGS_QUERY_COL_RECIPIENT);
+		const char *contents = (const char*) sqlite3_column_text(
+			get_unseen_msgs_q, GET_UNSEEN_MSGS_QUERY_COL_CONTENTS);
 		guint64 msg_time = sqlite3_column_int64(get_unseen_msgs_q,
 			GET_UNSEEN_MSGS_QUERY_COL_MSGTIME);
 		PurpleMessageFlags msg_flags = sqlite3_column_int(get_unseen_msgs_q,



More information about the Commits mailing list