lintian doesn't like orphan packages with uploaders...
[debian/amanda] / common-src / ipc-binary-test.c
index 11945c33ed73d7c85bf212748f3c1b430cff51bc..7e77d1a2831451b0939d8d61d51a17f34c5ead0a 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * 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
@@ -158,7 +159,7 @@ test_sync_parent(ipc_binary_proto_t *proto, int fd)
     return 1;
 }
 
-static int
+static gboolean
 test_sync(void)
 {
     int rv;
@@ -170,7 +171,7 @@ test_sync(void)
 
     if (pipe(p) == -1) {
        perror("pipe");
-       return 0;
+       return FALSE;
     }
 
     proto = ipc_binary_proto_new(0xE10E);
@@ -187,7 +188,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