Use g_usleep() for portability, bug #644465
authorTor Lillqvist <tml@iki.fi>
Fri, 11 Mar 2011 08:19:42 +0000 (10:19 +0200)
committerTor Lillqvist <tml@iki.fi>
Fri, 11 Mar 2011 08:19:42 +0000 (10:19 +0200)
glib/tests/timeout.c

index 9354cd7..824afc0 100644 (file)
@@ -61,7 +61,7 @@ test_func (gpointer data)
   /* Make the timeout take up to 0.1 seconds.
    * We should still get scheduled for the next second.
    */
-  usleep (count * 10000);
+  g_usleep (count * 10000);
 
   if (count < 10)
     return TRUE;