diff options
Diffstat (limited to 'shell')
-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) static void prs(const char *s) { if (*s) - write(STDERR_FILENO, s, strlen(s)); + xwrite_str(STDERR_FILENO, s); } static void prn(unsigned u) @@ -3600,7 +3600,7 @@ static int doset(struct op *t UNUSED_PARAM, char **args) cp = args[1]; if (cp == NULL) { for (vp = vlist; vp; vp = vp->next) - varput(vp->name, 1); + varput(vp->name, STDOUT_FILENO); return 0; } if (*cp == '-') { @@ -3639,8 +3639,8 @@ static int doset(struct op *t UNUSED_PARAM, char **args) static void varput(char *s, int out) { if (isalnum(*s) || *s == '_') { - write(out, s, strlen(s)); - write(out, "\n", 1); + xwrite_str(out, s); + xwrite(out, "\n", 1); } } |