+2003-01-29 Jordi Mallach <jordi@sindominio.net>
+
+ * src/client.c (client_connect): change deprecated g_string_sprintf
+ and g_stringsprintfa to g_string_printf and g_string_append_printf.
+ * src/gtetrinet.c: include <sys/poll.h>.
+
2003-01-28 James Antill <james@and.org>
* src/gtetrinet.c (gtetrinet_poll_func): Added fast poll() function.
/* construct message */
if (gamemode == TETRIFAST)
- g_string_sprintf (s1, "tetrifaster %s 1.13", nick);
+ g_string_printf (s1, "tetrifaster %s 1.13", nick);
else
- g_string_sprintf (s1, "tetrisstart %s 1.13", nick);
+ g_string_printf (s1, "tetrisstart %s 1.13", nick);
/* do that encoding thingy */
server_ip (ip);
- g_string_sprintf (iphashbuf, "%d",
+ g_string_printf (iphashbuf, "%d",
ip[0]*54 + ip[1]*41 + ip[2]*29 + ip[3]*17);
l = iphashbuf->len;
g_string_truncate(s1, 0);
for (i = 0; i < len; i ++)
- g_string_sprintfa(s1, "%02X", s2->str[i] & 0xFF);
+ g_string_append_printf(s1, "%02X", s2->str[i] & 0xFF);
/* now send to server */
client_sendmsg (s1->str);