diff options
author | Sheldon Hearn <sheldonh@FreeBSD.org> | 2001-07-26 11:02:39 +0000 |
---|---|---|
committer | Sheldon Hearn <sheldonh@FreeBSD.org> | 2001-07-26 11:02:39 +0000 |
commit | e1b4d8d0746069292d84708b0e11b17a7e1ef5e0 (patch) | |
tree | bd2ac2627dbeab7d3427432bb98d2c73085b61c1 /usr.bin/chat | |
parent | 8155f5e200803441caa6e1bba5d9fa1f836d232f (diff) | |
download | src-test2-e1b4d8d0746069292d84708b0e11b17a7e1ef5e0.tar.gz src-test2-e1b4d8d0746069292d84708b0e11b17a7e1ef5e0.zip |
Notes
Diffstat (limited to 'usr.bin/chat')
-rw-r--r-- | usr.bin/chat/chat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/chat/chat.c b/usr.bin/chat/chat.c index fd71405d17b2..03133d84bd2a 100644 --- a/usr.bin/chat/chat.c +++ b/usr.bin/chat/chat.c @@ -969,7 +969,7 @@ register char *s; if (say_next) { say_next = 0; s = clean(s,0); - write(2, s, strlen(s)); + write(STDERR_FILENO, s, strlen(s)); free(s); return; } @@ -1118,7 +1118,7 @@ int get_char() int status; char c; - status = read(0, &c, 1); + status = read(STDIN_FILENO, &c, 1); switch (status) { case 1: @@ -1146,7 +1146,7 @@ int c; usleep(10000); /* inter-character typing delay (?) */ - status = write(1, &ch, 1); + status = write(STDOUT_FILENO, &ch, 1); switch (status) { case 1: @@ -1253,12 +1253,12 @@ int n; break; /* fall through */ case '\n': - write(2, "\n", 1); + write(STDERR_FILENO, "\n", 1); need_lf = 0; break; default: s = character(n); - write(2, s, strlen(s)); + write(STDERR_FILENO, s, strlen(s)); need_lf = 1; break; } |