Here is the patch for it. My very first patch ever :).

2010/11/30 Christoph Frieben <[email protected]>:
> dnd.c: In function ‘drop_io_func’:
> dnd.c:362:2: warning: passing argument 4 of ‘g_io_channel_read_chars’
> from incompatible pointer type
> /usr/include/glib-2.0/glib/giochannel.h:247:11: note: expected ‘gsize
> *’ but argument is of type ‘unsigned int *’
>
> Issued by GCC 4.5.1.
> ~C
> _______________________________________________
> wayland-devel mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
diff --git a/clients/dnd.c b/clients/dnd.c
index dedf353..82c95da 100644
--- a/clients/dnd.c
+++ b/clients/dnd.c
@@ -356,7 +356,7 @@ drop_io_func(GIOChannel *source, GIOCondition condition, gpointer data)
 	struct dnd_offer *dnd_offer = data;
 	char buffer[256];
 	int fd;
-	unsigned int len;
+	gsize len;
 	GError *err = NULL;
 
 	g_io_channel_read_chars(source, buffer, sizeof buffer, &len, &err);
_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to