sync: fix compile error
authorAlan Cox <alan@linux.intel.com>
Wed, 12 Oct 2016 18:37:31 +0000 (19:37 +0100)
committerAlan Cox <alan@linux.intel.com>
Wed, 12 Oct 2016 18:37:31 +0000 (19:37 +0100)
sync() is void and now correctly defined so return sync() fails.

Applications/util/sync.c

index 863d689..37527f8 100644 (file)
@@ -1,6 +1,7 @@
 #include <unistd.h>
 
-main(int argc, const char *argv[])
+int main(int argc, const char *argv[])
 {
-    return sync();
+    sync();
+    return 0;
 }