summaryrefslogtreecommitdiff
path: root/miscutils/update.c
diff options
context:
space:
mode:
authorErik Andersen2000-02-08 19:58:47 +0000
committerErik Andersen2000-02-08 19:58:47 +0000
commite49d5ecbbe51718fa925b6890a735e5937cc2aa2 (patch)
treec90bda10731ad9333ce3b404f993354c9fc104b8 /miscutils/update.c
parentc0bf817bbc5c7867fbe8fb76d5c39f8ee802692f (diff)
downloadbusybox-e49d5ecbbe51718fa925b6890a735e5937cc2aa2.zip
busybox-e49d5ecbbe51718fa925b6890a735e5937cc2aa2.tar.gz
Some formatting updates (ran the code through indent)
-Erik
Diffstat (limited to 'miscutils/update.c')
-rw-r--r--miscutils/update.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/miscutils/update.c b/miscutils/update.c
index 5a7c755..fef188b 100644
--- a/miscutils/update.c
+++ b/miscutils/update.c
@@ -1,3 +1,4 @@
+/* vi: set sw=4 ts=4: */
/*
* Mini update implementation for busybox
*
@@ -27,20 +28,19 @@
#include <sys/kdaemon.h>
#else
_syscall2(int, bdflush, int, func, int, data);
-#endif /* __GLIBC__ */
+#endif /* __GLIBC__ */
-extern int
-update_main(int argc, char** argv)
+extern int update_main(int argc, char **argv)
{
/*
* Update is actually two daemons, bdflush and update.
*/
- int pid;
+ int pid;
pid = fork();
- if ( pid < 0 )
+ if (pid < 0)
return pid;
- else if ( pid == 0 ) {
+ else if (pid == 0) {
/*
* This is no longer necessary since 1.3.5x, but it will harmlessly
* exit if that is the case.
@@ -52,11 +52,11 @@ update_main(int argc, char** argv)
_exit(0);
}
pid = fork();
- if ( pid < 0 )
+ if (pid < 0)
return pid;
- else if ( pid == 0 ) {
+ else if (pid == 0) {
argv[0] = "update";
- for ( ; ; ) {
+ for (;;) {
sync();
sleep(30);
}