X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fipc-binary-test.c;fp=common-src%2Fipc-binary-test.c;h=7361e6e6527b3be26164a7d027179a3d6e92b4b0;hb=cd0b924f27312d57bd42f6c4fae2b795139e2d0b;hp=11945c33ed73d7c85bf212748f3c1b430cff51bc;hpb=011a59f5a54864108a16af570a6b287410597cc2;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