Wrap a table (bg set to black, width=80%) around the screenshot
[oweals/busybox.git] / update.c
index 7279d83a87981c3d47ddd370c76b597d41080600..309ce0cbddc049fc21f3f3ad83cf1be7264f412d 100644 (file)
--- a/update.c
+++ b/update.c
 #include <sys/param.h>
 #include <sys/syslog.h>
 #include <unistd.h> /* for getopt() */
+#include <stdlib.h>
 
 
 #if defined(__GLIBC__)
 #include <sys/kdaemon.h>
 #else
+#include <sys/syscall.h>
+#include <linux/unistd.h>
 static _syscall2(int, bdflush, int, func, int, data);
 #endif /* __GLIBC__ */
 
@@ -67,7 +70,7 @@ extern int update_main(int argc, char **argv)
 
        pid = fork();
        if (pid < 0)
-               exit(FALSE);
+               return EXIT_FAILURE;
        else if (pid == 0) {
                /* Become a proper daemon */
                setsid();
@@ -99,12 +102,12 @@ extern int update_main(int argc, char **argv)
                                        syslog(LOG_INFO,
                                                   "This kernel does not need update(8). Exiting.");
                                        closelog();
-                                       exit(TRUE);
+                                       return EXIT_SUCCESS;
                                }
                        }
                }
        }
-       return( TRUE);
+       return EXIT_SUCCESS;
 }
 
 /*