diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2001-07-26 11:02:39 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2001-07-26 11:02:39 +0000 |
commit | 9bfb9eedcddf3ab4e79532e863cf16c5ff381090 (patch) | |
tree | bd2ac2627dbeab7d3427432bb98d2c73085b61c1 /usr.bin/script | |
parent | 505859f37d54f23b1ebc688851be182d4e1332c8 (diff) | |
download | FreeBSD-src-9bfb9eedcddf3ab4e79532e863cf16c5ff381090.zip FreeBSD-src-9bfb9eedcddf3ab4e79532e863cf16c5ff381090.tar.gz |
Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. The
definitions are more readable, and it's possible that they're
more portable to pathalogical platforms.
Submitted by: David Hill <david@phobia.ms>
Diffstat (limited to 'usr.bin/script')
-rw-r--r-- | usr.bin/script/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index b6a59c8..20c6a01 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -185,7 +185,7 @@ main(argc, argv) cc = read(master, obuf, sizeof (obuf)); if (cc <= 0) break; - (void)write(1, obuf, cc); + (void)write(STDOUT_FILENO, obuf, cc); (void)fwrite(obuf, 1, cc, fscript); } tvec = time(0); |