aboutsummaryrefslogtreecommitdiff
path: root/miscutils/update.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-05 03:14:39 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-05 03:14:39 +0000
commite76c3b08e105147e3cef7e8d38d65da2fac6b2e1 (patch)
tree87f705b9e4e4e48700ac61e9538c637ae2b395a7 /miscutils/update.c
parent3c0364f3911ec9f43e1c8c96ec2c8e30b1b52c47 (diff)
downloadbusybox-w32-e76c3b08e105147e3cef7e8d38d65da2fac6b2e1.tar.gz
busybox-w32-e76c3b08e105147e3cef7e8d38d65da2fac6b2e1.tar.bz2
busybox-w32-e76c3b08e105147e3cef7e8d38d65da2fac6b2e1.zip
A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a few
shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik
Diffstat (limited to 'miscutils/update.c')
-rw-r--r--miscutils/update.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/miscutils/update.c b/miscutils/update.c
index b282b9e18..ce2b6cf08 100644
--- a/miscutils/update.c
+++ b/miscutils/update.c
@@ -33,14 +33,12 @@
33#include <unistd.h> /* for getopt() */ 33#include <unistd.h> /* for getopt() */
34#include <stdlib.h> 34#include <stdlib.h>
35 35
36
37#if defined(__GLIBC__) 36#if defined(__GLIBC__)
38#include <sys/kdaemon.h> 37#include <sys/kdaemon.h>
39#else 38#else
40#include <sys/syscall.h> 39extern int bdflush (int func, long int data);
41#include <linux/unistd.h> 40#endif /* __GLIBC__ */
42static _syscall2(int, bdflush, int, func, int, data); 41
43#endif /* __GLIBC__ */
44#include "busybox.h" 42#include "busybox.h"
45 43
46static unsigned int sync_duration = 30; 44static unsigned int sync_duration = 30;