diff options
Diffstat (limited to '')
-rw-r--r-- | shell/msh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/msh.c b/shell/msh.c index 0cb81fee7..5f8c90ef6 100644 --- a/shell/msh.c +++ b/shell/msh.c | |||
@@ -743,7 +743,7 @@ static void print_tree(struct op *head) | |||
743 | static void prs(const char *s) | 743 | static void prs(const char *s) |
744 | { | 744 | { |
745 | if (*s) | 745 | if (*s) |
746 | write(STDERR_FILENO, s, strlen(s)); | 746 | xwrite_str(STDERR_FILENO, s); |
747 | } | 747 | } |
748 | 748 | ||
749 | static void prn(unsigned u) | 749 | static void prn(unsigned u) |
@@ -3600,7 +3600,7 @@ static int doset(struct op *t UNUSED_PARAM, char **args) | |||
3600 | cp = args[1]; | 3600 | cp = args[1]; |
3601 | if (cp == NULL) { | 3601 | if (cp == NULL) { |
3602 | for (vp = vlist; vp; vp = vp->next) | 3602 | for (vp = vlist; vp; vp = vp->next) |
3603 | varput(vp->name, 1); | 3603 | varput(vp->name, STDOUT_FILENO); |
3604 | return 0; | 3604 | return 0; |
3605 | } | 3605 | } |
3606 | if (*cp == '-') { | 3606 | if (*cp == '-') { |
@@ -3639,8 +3639,8 @@ static int doset(struct op *t UNUSED_PARAM, char **args) | |||
3639 | static void varput(char *s, int out) | 3639 | static void varput(char *s, int out) |
3640 | { | 3640 | { |
3641 | if (isalnum(*s) || *s == '_') { | 3641 | if (isalnum(*s) || *s == '_') { |
3642 | write(out, s, strlen(s)); | 3642 | xwrite_str(out, s); |
3643 | write(out, "\n", 1); | 3643 | xwrite(out, "\n", 1); |
3644 | } | 3644 | } |
3645 | } | 3645 | } |
3646 | 3646 | ||