diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-26 10:42:51 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-26 10:42:51 +0000 |
commit | bf0a201008671f81c107de72c026b1b84967561d (patch) | |
tree | af74820b70fa27929fe218c95822c20651b60637 /shell/ash.c | |
parent | 5dd7ef0f37373e397a7160cb431a32ae57f9f7d9 (diff) | |
download | busybox-w32-bf0a201008671f81c107de72c026b1b84967561d.tar.gz busybox-w32-bf0a201008671f81c107de72c026b1b84967561d.tar.bz2 busybox-w32-bf0a201008671f81c107de72c026b1b84967561d.zip |
style fixes
last xcalloc replaced by xzalloc
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/ash.c b/shell/ash.c index e8f7d30bd..afb9b6a95 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -2402,7 +2402,7 @@ static const char * updatepwd(const char *dir) | |||
2402 | } | 2402 | } |
2403 | p = strtok(cdcomppath, "/"); | 2403 | p = strtok(cdcomppath, "/"); |
2404 | while (p) { | 2404 | while (p) { |
2405 | switch(*p) { | 2405 | switch (*p) { |
2406 | case '.': | 2406 | case '.': |
2407 | if (p[1] == '.' && p[2] == '\0') { | 2407 | if (p[1] == '.' && p[2] == '\0') { |
2408 | while (new > lim) { | 2408 | while (new > lim) { |
@@ -4802,7 +4802,7 @@ exptilde(char *startp, char *p, int flag) | |||
4802 | name = p + 1; | 4802 | name = p + 1; |
4803 | 4803 | ||
4804 | while ((c = *++p) != '\0') { | 4804 | while ((c = *++p) != '\0') { |
4805 | switch(c) { | 4805 | switch (c) { |
4806 | case CTLESC: | 4806 | case CTLESC: |
4807 | return startp; | 4807 | return startp; |
4808 | case CTLQUOTEMARK: | 4808 | case CTLQUOTEMARK: |
@@ -10211,7 +10211,7 @@ readtoken1(int firstc, int syntax, char *eofmark, int striptabs) | |||
10211 | CHECKEND(); /* set c to PEOF if at end of here document */ | 10211 | CHECKEND(); /* set c to PEOF if at end of here document */ |
10212 | for (;;) { /* until end of line or end of word */ | 10212 | for (;;) { /* until end of line or end of word */ |
10213 | CHECKSTRSPACE(4, out); /* permit 4 calls to USTPUTC */ | 10213 | CHECKSTRSPACE(4, out); /* permit 4 calls to USTPUTC */ |
10214 | switch(SIT(c, syntax)) { | 10214 | switch (SIT(c, syntax)) { |
10215 | case CNL: /* '\n' */ | 10215 | case CNL: /* '\n' */ |
10216 | if (syntax == BASESYNTAX) | 10216 | if (syntax == BASESYNTAX) |
10217 | goto endword; /* exit outer loop */ | 10217 | goto endword; /* exit outer loop */ |
@@ -11282,7 +11282,7 @@ shtree(union node *n, int ind, char *pfx, FILE *fp) | |||
11282 | return; | 11282 | return; |
11283 | 11283 | ||
11284 | indent(ind, pfx, fp); | 11284 | indent(ind, pfx, fp); |
11285 | switch(n->type) { | 11285 | switch (n->type) { |
11286 | case NSEMI: | 11286 | case NSEMI: |
11287 | s = "; "; | 11287 | s = "; "; |
11288 | goto binop; | 11288 | goto binop; |
@@ -12613,7 +12613,7 @@ readcmd(int argc, char **argv) | |||
12613 | while ((i = nextopt("p:r")) != '\0') | 12613 | while ((i = nextopt("p:r")) != '\0') |
12614 | #endif | 12614 | #endif |
12615 | { | 12615 | { |
12616 | switch(i) { | 12616 | switch (i) { |
12617 | case 'p': | 12617 | case 'p': |
12618 | prompt = optionarg; | 12618 | prompt = optionarg; |
12619 | break; | 12619 | break; |
@@ -13579,7 +13579,7 @@ static arith_t arith (const char *expr, int *perrcode) | |||
13579 | * a number, since it evaluates to one). Think about it. | 13579 | * a number, since it evaluates to one). Think about it. |
13580 | * It makes sense. */ | 13580 | * It makes sense. */ |
13581 | if (lasttok != TOK_NUM) { | 13581 | if (lasttok != TOK_NUM) { |
13582 | switch(op) { | 13582 | switch (op) { |
13583 | case TOK_ADD: | 13583 | case TOK_ADD: |
13584 | op = TOK_UPLUS; | 13584 | op = TOK_UPLUS; |
13585 | break; | 13585 | break; |