testsuite/threads/threadi.c: Fix buglet in test.

Original commit message from CVS:
* testsuite/threads/threadi.c: (cb_data):
Fix buglet in test.
This commit is contained in:
Ronald S. Bultje 2005-02-01 20:32:50 +00:00
parent edc6803ed1
commit 4bdd55b8d1
3 changed files with 17 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-02-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* testsuite/threads/threadi.c: (cb_data):
Fix buglet in test.
2005-02-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* testsuite/threads/Makefile.am:

View file

@ -51,10 +51,15 @@ cb_eos (gpointer data)
static void
cb_data (gpointer data)
{
static gboolean first = TRUE;
g_print ("Received data\n");
if (first) {
first = FALSE;
g_idle_add ((GSourceFunc) cb_quit, NULL);
}
}
#endif
static void

View file

@ -51,10 +51,15 @@ cb_eos (gpointer data)
static void
cb_data (gpointer data)
{
static gboolean first = TRUE;
g_print ("Received data\n");
if (first) {
first = FALSE;
g_idle_add ((GSourceFunc) cb_quit, NULL);
}
}
#endif
static void