]> hydra-www.ietfng.org Git - gtetrinet/commitdiff
removed some unused variables
authorDaniel Carbonell Fraj <bocata@src.gnome.org>
Sun, 9 Feb 2003 19:44:15 +0000 (19:44 +0000)
committerDaniel Carbonell Fraj <bocata@src.gnome.org>
Sun, 9 Feb 2003 19:44:15 +0000 (19:44 +0000)
src/client.c
src/config.c
src/gtetrinet.c

index 7f9a13260dcfd2661a99ff0911a6b05f6e1f2777..d30ac298de0abbdd5b49a43a13f266998ca760c0 100644 (file)
@@ -144,8 +144,7 @@ static int client_connect (void);
 static void client_connected (void);
 
 /* some other useful functions */
-static gboolean
-io_channel_cb (GIOChannel *source, GIOCondition condition, gpointer data);
+static gboolean io_channel_cb (GIOChannel *source, GIOCondition condition);
 static int client_sendmsg (char *str);
 static int client_readmsg (gchar **str);
 static void server_ip (unsigned char buf[4]);
@@ -293,7 +292,7 @@ int client_connect (void)
     io_channel = g_io_channel_unix_new (sock);
     g_io_channel_set_encoding (io_channel, NULL, NULL);
     g_io_channel_set_buffered (io_channel, FALSE);
-    source = g_io_add_watch (io_channel, G_IO_IN, io_channel_cb, NULL);
+    source = g_io_add_watch (io_channel, G_IO_IN, (GIOFunc)io_channel_cb, NULL);
     
     /* say hello to the server */
     {
@@ -363,10 +362,11 @@ void client_disconnect (void)
 /* some other useful functions */
 
 static gboolean
-io_channel_cb (GIOChannel *source, GIOCondition condition, gpointer data)
+io_channel_cb (GIOChannel *source, GIOCondition condition)
 {
   gchar *buf;
-  gint i = 0;
+  
+  source = source; /* get rid of the warnings */
   
   switch (condition)
   {
@@ -412,7 +412,6 @@ int client_readmsg (gchar **str)
     gint bytes = 0;
     gchar buf[1024];
     GError *error = NULL;
-    GIOStatus status;
     gint i = 0;
   
     do
index 66ec36d72836afbfe55c7cca7099dcb3f7b2165e..ce19d1b510d4d7fd23ef00d172f6c8e7fbe02956 100644 (file)
@@ -173,7 +173,6 @@ int config_getthemeinfo (char *themedir, char *name, char *author, char *desc)
 
 void config_loadconfig (void)
 {
-    int l;
     gchar *p;
 
     currenttheme = g_string_sized_new(100);
index 128469d17cc12ea07090aa0f9c2266d92d0839a3..2cc3a6c1068253837c1079b5826fa82a7f552681 100644 (file)
@@ -99,7 +99,6 @@ static int gtetrinet_poll_func(GPollFD *passed_fds,
 int main (int argc, char *argv[])
 {
     GtkWidget *label;
-    char buf[1024];
     GdkPixbuf *icon_pixbuf;
     GError *err = NULL;