aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-02-19 22:41:55 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-02-19 22:41:55 +0000
commitb4544f6bcf474bc61bc2b43f2390bf772d2ba794 (patch)
tree0bee5a72475e15862f09bc409556ccbb13e5cc15 /shell
parent02af72fc98c373dce7b97ac5b133c3c2a9fbede6 (diff)
downloadbusybox-w32-b4544f6bcf474bc61bc2b43f2390bf772d2ba794.tar.gz
busybox-w32-b4544f6bcf474bc61bc2b43f2390bf772d2ba794.tar.bz2
busybox-w32-b4544f6bcf474bc61bc2b43f2390bf772d2ba794.zip
ash: tiny style fixes
git-svn-id: svn://busybox.net/trunk/busybox@17930 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/shell/ash.c b/shell/ash.c
index c1b5841dd..242e3b765 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -228,7 +228,8 @@ static void sh_warnx(const char *, ...);
228 228
229#if ENABLE_ASH_OPTIMIZE_FOR_SIZE 229#if ENABLE_ASH_OPTIMIZE_FOR_SIZE
230static void 230static void
231inton(void) { 231inton(void)
232{
232 if (--suppressint == 0 && intpending) { 233 if (--suppressint == 0 && intpending) {
233 onint(); 234 onint();
234 } 235 }
@@ -2217,7 +2218,8 @@ unaliascmd(int argc, char **argv)
2217} 2218}
2218 2219
2219static struct alias * 2220static struct alias *
2220freealias(struct alias *ap) { 2221freealias(struct alias *ap)
2222{
2221 struct alias *next; 2223 struct alias *next;
2222 2224
2223 if (ap->flag & ALIASINUSE) { 2225 if (ap->flag & ALIASINUSE) {
@@ -2233,7 +2235,8 @@ freealias(struct alias *ap) {
2233} 2235}
2234 2236
2235static void 2237static void
2236printalias(const struct alias *ap) { 2238printalias(const struct alias *ap)
2239{
2237 out1fmt("%s=%s\n", ap->name, single_quote(ap->val)); 2240 out1fmt("%s=%s\n", ap->name, single_quote(ap->val));
2238} 2241}
2239 2242
@@ -2548,7 +2551,8 @@ exraise(int e)
2548 * defensive programming.) 2551 * defensive programming.)
2549 */ 2552 */
2550static void 2553static void
2551onint(void) { 2554onint(void)
2555{
2552 int i; 2556 int i;
2553 2557
2554 intpending = 0; 2558 intpending = 0;
@@ -4539,7 +4543,8 @@ static char * preglob(const char *pattern, int quoted, int flag)
4539 4543
4540 4544
4541static size_t 4545static size_t
4542esclen(const char *start, const char *p) { 4546esclen(const char *start, const char *p)
4547{
4543 size_t esc = 0; 4548 size_t esc = 0;
4544 4549
4545 while (p > start && *--p == CTLESC) { 4550 while (p > start && *--p == CTLESC) {
@@ -5247,7 +5252,8 @@ evalvar(char *p, int flag)
5247 * Put a string on the stack. 5252 * Put a string on the stack.
5248 */ 5253 */
5249static void 5254static void
5250memtodest(const char *p, size_t len, int syntax, int quotes) { 5255memtodest(const char *p, size_t len, int syntax, int quotes)
5256{
5251 char *q = expdest; 5257 char *q = expdest;
5252 5258
5253 q = makestrspace(len * 2, q); 5259 q = makestrspace(len * 2, q);
@@ -7722,7 +7728,8 @@ xtcsetpgrp(int fd, pid_t pgrp)
7722#endif /* JOBS */ 7728#endif /* JOBS */
7723 7729
7724static int 7730static int
7725getstatus(struct job *job) { 7731getstatus(struct job *job)
7732{
7726 int status; 7733 int status;
7727 int retval; 7734 int retval;
7728 7735
@@ -9661,7 +9668,8 @@ command(void)
9661 9668
9662 9669
9663static union node * 9670static union node *
9664simplecmd(void) { 9671simplecmd(void)
9672{
9665 union node *args, **app; 9673 union node *args, **app;
9666 union node *n = NULL; 9674 union node *n = NULL;
9667 union node *vars, **vpp; 9675 union node *vars, **vpp;