[glib] Don't do < 0 on an unsigned value



commit 01e6cf1360deffe49c7bb4d1fa3cbd3d904c6b30
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jun 14 11:40:32 2011 -0400

    Don't do < 0 on an unsigned value
    
    It won't work. read() returns a signed value, anyway.

 gio/tests/gdbus-sessionbus.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/gdbus-sessionbus.c b/gio/tests/gdbus-sessionbus.c
index e90bd1f..f39583c 100644
--- a/gio/tests/gdbus-sessionbus.c
+++ b/gio/tests/gdbus-sessionbus.c
@@ -42,7 +42,7 @@ watch_parent (gint fd)
   GPollFD fds[1];
   gint num_events;
   gchar buf[512];
-  guint bytes_read;
+  gssize bytes_read;
   GArray *buses_to_kill_array;
 
   fds[0].fd = fd;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]