Fix compile warnings on Unix (missing sentinel and time_t to int typecast). soc.2007.msimprpl

Tue, 10 Jul 2007 06:07:34 +0000

author
Jeff Connelly <jeff2@soc.pidgin.im>
date
Tue, 10 Jul 2007 06:07:34 +0000
branch
soc.2007.msimprpl
changeset 18029
48e7b6d97f1f
parent 18028
85ed2582be94
child 18030
b65216a8cfe5

Fix compile warnings on Unix (missing sentinel and time_t to int typecast).

libpurple/protocols/myspace/myspace.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/myspace/myspace.c	Thu Jul 05 06:16:25 2007 +0000
+++ b/libpurple/protocols/myspace/myspace.c	Tue Jul 10 06:07:34 2007 +0000
@@ -1389,7 +1389,8 @@
 			"status", MSIM_TYPE_INTEGER, status_code,
 			"sesskey", MSIM_TYPE_INTEGER, session->sesskey,
 			"statstring", MSIM_TYPE_STRING, g_strdup(""),
-			"locstring", MSIM_TYPE_STRING, g_strdup("")))
+			"locstring", MSIM_TYPE_STRING, g_strdup(""),
+            NULL))
 	{
 		purple_debug_info("msim", "msim_set_status: failed to set status");
 	}
@@ -1612,7 +1613,7 @@
     purple_debug_info("msim", "msim_check_alive: delta=%d\n", delta);
     if (delta >= MSIM_KEEPALIVE_INTERVAL)
     {
-        errmsg = g_strdup_printf(_("Connection to server lost (no data received within %d seconds)"), delta);
+        errmsg = g_strdup_printf(_("Connection to server lost (no data received within %d seconds)"), (int)delta);
 
         purple_debug_info("msim", "msim_check_alive: %s > interval of %d, presumed dead\n",
                 errmsg, MSIM_KEEPALIVE_INTERVAL);

mercurial