aboutsummaryrefslogtreecommitdiff
path: root/bin/sync
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1994-09-20 07:02:35 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1994-09-20 07:02:35 +0000
commit9e6f6868ff810a7ee73c3dcaa1c8cf564fe0e2d8 (patch)
treeda1472e9b3b4f4e9635e0fe33353c5107f0365ec /bin/sync
parent3a1552326096fc131b570be1f9b594834ca330bd (diff)
downloadsrc-9e6f6868ff810a7ee73c3dcaa1c8cf564fe0e2d8.tar.gz
src-9e6f6868ff810a7ee73c3dcaa1c8cf564fe0e2d8.zip
The former patch to sync.c was short-lived. Bruce pointed out that
"Now it is has 2 portability bugs, which is a lot for 5 lines of working code"
Notes
Notes: svn path=/head/; revision=2925
Diffstat (limited to 'bin/sync')
-rw-r--r--bin/sync/sync.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/sync/sync.c b/bin/sync/sync.c
index 23714f589382..9a2747b89284 100644
--- a/bin/sync/sync.c
+++ b/bin/sync/sync.c
@@ -41,9 +41,10 @@ static char copyright[] =
static char sccsid[] = "@(#)sync.c 8.1 (Berkeley) 5/31/93";
#endif /* not lint */
-void sync();
+#include <unistd.h>
-void main()
+int
+main()
{
sync();
exit(0);