Fixed segfault with 'cut -f 1 -d:' and added 'cut -s' suport.
[oweals/busybox.git] / update.c
index 14f1d3c2081dcfaa3268b167a55f72fe821665f3..b86d84e06680087f0db50ae6eb5689812a4fd4fc 100644 (file)
--- a/update.c
+++ b/update.c
 #include <sys/param.h>
 #include <sys/syslog.h>
 
+
 #if defined(__GLIBC__)
 #include <sys/kdaemon.h>
 #else
-_syscall2(int, bdflush, int, func, int, data);
+static _syscall2(int, bdflush, int, func, int, data);
 #endif                                                 /* __GLIBC__ */
 
+
 static char update_usage[] =
        "update [options]\n"
 #ifndef BB_FEATURE_TRIVIAL_HELP
@@ -109,7 +111,7 @@ extern int update_main(int argc, char **argv)
                        }
                }
        }
-       exit( TRUE);
+       return( TRUE);
 }
 
 /*