diff options
author | Denis Vlasenko | 2007-03-20 11:30:28 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-03-20 11:30:28 +0000 |
commit | c86e052b81210e762f8ca6b79cb46b8c4bdfbfe0 (patch) | |
tree | 90608280101218f60c7d9181b913e92ba895799d /shell/msh.c | |
parent | e84aeb5bcb1a8398fce53aad9c0072ad73a8b5c9 (diff) | |
download | busybox-c86e052b81210e762f8ca6b79cb46b8c4bdfbfe0.zip busybox-c86e052b81210e762f8ca6b79cb46b8c4bdfbfe0.tar.gz |
fix accumulated whitespace and indentation damage
Diffstat (limited to 'shell/msh.c')
-rw-r--r-- | shell/msh.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/shell/msh.c b/shell/msh.c index 89c3753..41f4cc6 100644 --- a/shell/msh.c +++ b/shell/msh.c @@ -50,36 +50,36 @@ static char *find_applet_by_name(const char *applet) } static void utoa_to_buf(unsigned n, char *buf, unsigned buflen) { - unsigned i, out, res; - assert(sizeof(unsigned) == 4); - if (buflen) { - out = 0; - for (i = 1000000000; i; i /= 10) { - res = n / i; - if (res || out || i == 1) { - if (!--buflen) break; - out++; - n -= res*i; - *buf++ = '0' + res; - } - } - *buf = '\0'; - } + unsigned i, out, res; + assert(sizeof(unsigned) == 4); + if (buflen) { + out = 0; + for (i = 1000000000; i; i /= 10) { + res = n / i; + if (res || out || i == 1) { + if (!--buflen) break; + out++; + n -= res*i; + *buf++ = '0' + res; + } + } + *buf = '\0'; + } } static void itoa_to_buf(int n, char *buf, unsigned buflen) { - if (buflen && n<0) { - n = -n; - *buf++ = '-'; - buflen--; - } - utoa_to_buf((unsigned)n, buf, buflen); + if (buflen && n < 0) { + n = -n; + *buf++ = '-'; + buflen--; + } + utoa_to_buf((unsigned)n, buf, buflen); } static char local_buf[12]; static char *itoa(int n) { - itoa_to_buf(n, local_buf, sizeof(local_buf)); - return local_buf; + itoa_to_buf(n, local_buf, sizeof(local_buf)); + return local_buf; } #else # include <setjmp.h> |