]> hydra-www.ietfng.org Git - gtetrinet/commitdiff
Remove two unused variables. Change a gint to gsize to avoid a crash when
authorJordi Mallach <jordi@sindominio.net>
Fri, 3 Nov 2006 17:04:48 +0000 (17:04 +0000)
committerJordi Mallach <jordim@src.gnome.org>
Fri, 3 Nov 2006 17:04:48 +0000 (17:04 +0000)
2006-11-03  Jordi Mallach  <jordi@sindominio.net>

* src/partyline.c: Remove two unused variables.
* src/client.c (client_readmsg): Change a gint to gsize to avoid
a crash when connecting on NetBSD/Sparc64. Thanks khorben for the
info. Fixes: #338712.

ChangeLog
src/client.c
src/partyline.c

index 5f7974ad5ee3877d65803a8ba551d85ded00e156..0ed5bd7c44c305cf727fe5922a6561c81b57cb52 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-11-03  Jordi Mallach  <jordi@sindominio.net>
+
+       * src/partyline.c: Remove two unused variables.
+       * src/client.c (client_readmsg): Change a gint to gsize to avoid
+       a crash when connecting on NetBSD/Sparc64. Thanks khorben for the
+       info. Fixes: #338712.
+
 2006-11-03  Jordi Mallach  <jordi@sindominio.net>
 
        * configure.in, src/Makefile.am: Patch from Ricardo Setti: Add
index 97259b961dd3742289d735034ae3ea9ee0f381a3..7124bd07605f9342c2dd013023b766978b512ac6 100644 (file)
@@ -449,7 +449,7 @@ int client_sendmsg (char *str)
 
 int client_readmsg (gchar **str)
 {
-    gint bytes = 0;
+    gsize bytes = 0;
     gchar buf[1024];
     GError *error = NULL;
     gint i = 0;
index e6b0c677c94da761f63db2d65e20f3013da9579d..490326d3381709426e9f2f4d3e5875a890dc694a 100644 (file)
@@ -210,8 +210,6 @@ void partyline_connectstatus (int status)
 
 void partyline_namelabel (char *nick, char *team)
 {
-    gchar *nick_utf8, *team_utf8;
-  
     if (nick)
     {
       gtk_label_set_text (GTK_LABEL(namelabel), nick);