diff options
Diffstat (limited to 'shell/msh.c')
-rw-r--r-- | shell/msh.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/msh.c b/shell/msh.c index f1b3f0525..41fe1b6ba 100644 --- a/shell/msh.c +++ b/shell/msh.c | |||
@@ -1137,7 +1137,7 @@ static void nameval(struct var *vp, const char *val, const char *name) | |||
1137 | if (vp->status & RONLY) { | 1137 | if (vp->status & RONLY) { |
1138 | xp = vp->name; | 1138 | xp = vp->name; |
1139 | while (*xp && *xp != '=') | 1139 | while (*xp && *xp != '=') |
1140 | putc(*xp++, stderr); | 1140 | fputc(*xp++, stderr); |
1141 | err(" is read-only"); | 1141 | err(" is read-only"); |
1142 | return; | 1142 | return; |
1143 | } | 1143 | } |
@@ -3181,7 +3181,7 @@ static int dohelp(struct op *t) | |||
3181 | while (x->name) { | 3181 | while (x->name) { |
3182 | col += printf("%c%s", ((col == 0) ? '\t' : ' '), x->name); | 3182 | col += printf("%c%s", ((col == 0) ? '\t' : ' '), x->name); |
3183 | if (col > 60) { | 3183 | if (col > 60) { |
3184 | puts(""); | 3184 | bb_putchar('\n'); |
3185 | col = 0; | 3185 | col = 0; |
3186 | } | 3186 | } |
3187 | x++; | 3187 | x++; |
@@ -3193,7 +3193,7 @@ static int dohelp(struct op *t) | |||
3193 | while (applet->name) { | 3193 | while (applet->name) { |
3194 | col += printf("%c%s", ((col == 0) ? '\t' : ' '), applet->name); | 3194 | col += printf("%c%s", ((col == 0) ? '\t' : ' '), applet->name); |
3195 | if (col > 60) { | 3195 | if (col > 60) { |
3196 | puts(""); | 3196 | bb_putchar('\n'); |
3197 | col = 0; | 3197 | col = 0; |
3198 | } | 3198 | } |
3199 | applet++; | 3199 | applet++; |
@@ -3274,8 +3274,8 @@ static int doumask(struct op *t) | |||
3274 | i = umask(0); | 3274 | i = umask(0); |
3275 | umask(i); | 3275 | umask(i); |
3276 | for (n = 3 * 4; (n -= 3) >= 0;) | 3276 | for (n = 3 * 4; (n -= 3) >= 0;) |
3277 | putc('0' + ((i >> n) & 07), stderr); | 3277 | fputc('0' + ((i >> n) & 07), stderr); |
3278 | putc('\n', stderr); | 3278 | fputc('\n', stderr); |
3279 | } else { | 3279 | } else { |
3280 | /* huh??? '8','9' are not allowed! */ | 3280 | /* huh??? '8','9' are not allowed! */ |
3281 | for (n = 0; *cp >= '0' && *cp <= '9'; cp++) | 3281 | for (n = 0; *cp >= '0' && *cp <= '9'; cp++) |