summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>2001-07-26 11:02:39 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>2001-07-26 11:02:39 +0000
commite1b4d8d0746069292d84708b0e11b17a7e1ef5e0 (patch)
treebd2ac2627dbeab7d3427432bb98d2c73085b61c1 /bin
parent8155f5e200803441caa6e1bba5d9fa1f836d232f (diff)
downloadsrc-test2-e1b4d8d0746069292d84708b0e11b17a7e1ef5e0.tar.gz
src-test2-e1b4d8d0746069292d84708b0e11b17a7e1ef5e0.zip
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/memalloc.c2
-rw-r--r--bin/sh/miscbltin.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/sh/memalloc.c b/bin/sh/memalloc.c
index c106775254fe..26b4b2d70cf8 100644
--- a/bin/sh/memalloc.c
+++ b/bin/sh/memalloc.c
@@ -161,7 +161,7 @@ stunalloc(p)
pointer p;
{
if (p == NULL) { /*DEBUG */
- write(2, "stunalloc\n", 10);
+ write(STDERR_FILENO, "stunalloc\n", 10);
abort();
}
stacknleft += stacknxt - (char *)p;
diff --git a/bin/sh/miscbltin.c b/bin/sh/miscbltin.c
index 46d39502111d..5c5d1544e6f5 100644
--- a/bin/sh/miscbltin.c
+++ b/bin/sh/miscbltin.c
@@ -171,7 +171,7 @@ readcmd(argc, argv)
backslash = 0;
STARTSTACKSTR(p);
for (;;) {
- if (read(0, &c, 1) != 1) {
+ if (read(STDIN_FILENO, &c, 1) != 1) {
status = 1;
break;
}
@@ -194,7 +194,7 @@ readcmd(argc, argv)
}
startword = 0;
if (backslash && c == '\\') {
- if (read(0, &c, 1) != 1) {
+ if (read(STDIN_FILENO, &c, 1) != 1) {
status = 1;
break;
}