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

Igor Gajowiak <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 1411e9725a5e7208bc0a9d95fda3051a8ab97777
Author:	 Igor Gajowiak <[email protected]>
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,

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.