From: Daniel Carbonell Fraj Date: Sun, 9 Feb 2003 19:44:15 +0000 (+0000) Subject: removed some unused variables X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=06d24bf3bb92399c26db5df9d0c1399c87996125;p=gtetrinet removed some unused variables --- diff --git a/src/client.c b/src/client.c index 7f9a132..d30ac29 100644 --- a/src/client.c +++ b/src/client.c @@ -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 diff --git a/src/config.c b/src/config.c index 66ec36d..ce19d1b 100644 --- a/src/config.c +++ b/src/config.c @@ -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); diff --git a/src/gtetrinet.c b/src/gtetrinet.c index 128469d..2cc3a6c 100644 --- a/src/gtetrinet.c +++ b/src/gtetrinet.c @@ -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;