pidgin: 0303e207: This cast is incorrect. It should be (t...

markdoliner at pidgin.im markdoliner at pidgin.im
Thu Mar 4 02:42:31 EST 2010


-----------------------------------------------------------------
Revision: 0303e2072e9df6a3ea825f996a260acd80f12da7
Ancestor: 2ca6f433b2b80e77468b859fc96aeb48070e17c4
Author: markdoliner at pidgin.im
Date: 2010-03-04T07:37:08
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0303e2072e9df6a3ea825f996a260acd80f12da7

Modified files:
        libpurple/protocols/oscar/oscar.c

ChangeLog: 

This cast is incorrect.  It should be (time_t *).  But it's actually not needed.
This has been in our code since:
  22ea67df.. by warmenhoven 2001-07-31

Crazy, huh?  Fixes #11484.

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oscar.c	612bc673f2feac5f86dcc69fa0d8615a4e60fd25
+++ libpurple/protocols/oscar/oscar.c	5bc820ea79cc2e3f0a94b37d28279f2938d2f462
@@ -3797,7 +3797,7 @@ static int purple_conv_chat_incoming_msg
 	if (utf8 == NULL)
 		/* The conversion failed! */
 		utf8 = g_strdup(_("[Unable to display a message from this user because it contained invalid characters.]"));
-	serv_got_chat_in(gc, ccon->id, info->bn, 0, utf8, time((time_t)NULL));
+	serv_got_chat_in(gc, ccon->id, info->bn, 0, utf8, time(NULL));
 	g_free(utf8);
 
 	return 1;


More information about the Commits mailing list