return 1;
}
-static int
+static gboolean
test_sync(void)
{
int rv;
if (pipe(p) == -1) {
perror("pipe");
- return 0;
+ return FALSE;
}
proto = ipc_binary_proto_new(0xE10E);
/* run the parent and collect the results */
rv = test_sync_parent(proto, p[0]) && GPOINTER_TO_INT(g_thread_join(child));
- return rv;
+ return (rv) ? TRUE : FALSE;
}
int