[BusyBox] bug#1129: sync.c does not compile on RedHat 7.1

Gratien D'haese (Hewlett-Packard) gratiend at belgium.hp.com
Tue Mar 13 16:39:51 UTC 2001


Package: busybox
Version: 0.49
Severity: normal

Hi,

I'm the maintainer of mkCDrec and one of my beta-tester on RedHat 7.1
reported a bug against busybox' sync.c.
On RedHat 7.1 gcc-2.96-75 is used as c compiler. The following makes
sync.c compile properly

--- sync.c.orig Mon Mar   5 17:44:42 2001
+++ sync.c      Sun Mar   4 17:34:14 2001
@@ -29,5 +29,7 @@
 {
	if (argc > 1 && **(argv + 1) == '-')
		usage(sync_usage);
-	return(sync());
+/*	return(sync());*/
+	sync();
+	return(0);
 }

According to man 2 sync, the prototype for sync is:
extern void sync(void)

Hope this fix is good enough?

Thanks,
Gratien D'haese
gdha at it3.be






More information about the busybox mailing list