From 2c226859cfc911c4a1eea009897050a16714aeec Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 15 Nov 2007 18:30:30 -0600 Subject: Remove trailing whitespace (thanks to Charlie Shepherd), and a couple comment tweaks. --- toys/df.c | 2 +- toys/echo.c | 4 ++-- toys/mdev.c | 28 ++++++++++++++-------------- toys/oneit.c | 2 +- toys/toysh.c | 10 +++++----- 5 files changed, 23 insertions(+), 23 deletions(-) (limited to 'toys') diff --git a/toys/df.c b/toys/df.c index 52a6c1df..60008ce8 100644 --- a/toys/df.c +++ b/toys/df.c @@ -4,7 +4,7 @@ * * Implemented roughly according to SUSv3: * http://www.opengroup.org/onlinepubs/009695399/utilities/df.html - * + * * usage: df [-k] [-P|-t] [file...] */ diff --git a/toys/echo.c b/toys/echo.c index 397c21a7..d8ee08f2 100644 --- a/toys/echo.c +++ b/toys/echo.c @@ -9,14 +9,14 @@ int echo_main(void) { int i = 0; char *arg, *from = "\\abfnrtv", *to = "\\\a\b\f\n\r\t\v"; - + for (;;) { arg = toys.optargs[i]; if (!arg) break; if (i++) xputc(' '); // Handle -e - + if (toys.optflags&2) { int c, j = 0; for (;;) { diff --git a/toys/mdev.c b/toys/mdev.c index 53be23e0..a4ddb0b7 100644 --- a/toys/mdev.c +++ b/toys/mdev.c @@ -1,7 +1,7 @@ /* vi:set ts=4: - * + * * mdev - Mini udev for busybox - * + * * Copyright 2005 Rob Landley * Copyright 2005 Frank Sorenson */ @@ -29,16 +29,16 @@ static void make_device(char *path) close(fd); if (len<1) return; temp[len] = 0; - + // Determine device name, type, major and minor - + device_name = strrchr(path, '/') + 1; type = path[5]=='c' ? S_IFCHR : S_IFBLK; major = minor = 0; sscanf(temp, "%u:%u", &major, &minor); // If we have a config file, look up permissions for this device - + if (CFG_MDEV_CONF) { char *conf, *pos, *end; @@ -53,7 +53,7 @@ static void make_device(char *path) for (pos = conf; pos-conf