/*
* Amanda, The Advanced Maryland Automatic Network Disk Archiver
* Copyright (c) 1991-1998 University of Maryland at College Park
+ * Copyright (c) 2007-2012 Zmanda, Inc. All Rights Reserved.
* All Rights Reserved.
*
* Permission to use, copy, modify, distribute, and sell this software and its
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