diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-19 22:41:55 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-19 22:41:55 +0000 |
| commit | e5570da2cffbec12b99d99a11d20c5f2371d5b0f (patch) | |
| tree | 0bee5a72475e15862f09bc409556ccbb13e5cc15 /shell | |
| parent | 5cedb75aa76bb766b6f63a5bf7cc9572a87089d0 (diff) | |
| download | busybox-w32-e5570da2cffbec12b99d99a11d20c5f2371d5b0f.tar.gz busybox-w32-e5570da2cffbec12b99d99a11d20c5f2371d5b0f.tar.bz2 busybox-w32-e5570da2cffbec12b99d99a11d20c5f2371d5b0f.zip | |
ash: tiny style fixes
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/ash.c | 24 |
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 |
| 230 | static void | 230 | static void |
| 231 | inton(void) { | 231 | inton(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 | ||
| 2219 | static struct alias * | 2220 | static struct alias * |
| 2220 | freealias(struct alias *ap) { | 2221 | freealias(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 | ||
| 2235 | static void | 2237 | static void |
| 2236 | printalias(const struct alias *ap) { | 2238 | printalias(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 | */ |
| 2550 | static void | 2553 | static void |
| 2551 | onint(void) { | 2554 | onint(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 | ||
| 4541 | static size_t | 4545 | static size_t |
| 4542 | esclen(const char *start, const char *p) { | 4546 | esclen(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 | */ |
| 5249 | static void | 5254 | static void |
| 5250 | memtodest(const char *p, size_t len, int syntax, int quotes) { | 5255 | memtodest(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 | ||
| 7724 | static int | 7730 | static int |
| 7725 | getstatus(struct job *job) { | 7731 | getstatus(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 | ||
| 9663 | static union node * | 9670 | static union node * |
| 9664 | simplecmd(void) { | 9671 | simplecmd(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; |
