daemon: Fix sync() call on Unix.
authorRichard Jones <rjones@redhat.com>
Wed, 25 Nov 2009 16:54:46 +0000 (16:54 +0000)
committerRichard Jones <rjones@redhat.com>
Wed, 25 Nov 2009 16:54:46 +0000 (16:54 +0000)
daemon/sync.c

index 2cdb10c..37e8faa 100644 (file)
@@ -51,7 +51,8 @@ int
 sync_disks (void)
 {
 #if defined(HAVE_SYNC)
-  return sync ();
+  sync ();
+  return 0;
 #elif defined(WIN32)
   return sync_win32 ();
 #else