X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fipc-binary-test.c;h=7361e6e6527b3be26164a7d027179a3d6e92b4b0;hb=4c9eba1feb11adf189bceb4001c425e641f0b56a;hp=11945c33ed73d7c85bf212748f3c1b430cff51bc;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e;p=debian%2Famanda diff --git a/common-src/ipc-binary-test.c b/common-src/ipc-binary-test.c index 11945c3..7361e6e 100644 --- a/common-src/ipc-binary-test.c +++ b/common-src/ipc-binary-test.c @@ -158,7 +158,7 @@ test_sync_parent(ipc_binary_proto_t *proto, int fd) return 1; } -static int +static gboolean test_sync(void) { int rv; @@ -170,7 +170,7 @@ test_sync(void) if (pipe(p) == -1) { perror("pipe"); - return 0; + return FALSE; } proto = ipc_binary_proto_new(0xE10E); @@ -187,7 +187,7 @@ test_sync(void) /* 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