avoid setting errno when checking for tty
authorRich Felker <dalias@aerifal.cx>
Fri, 15 Apr 2011 16:04:13 +0000 (12:04 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 15 Apr 2011 16:04:13 +0000 (12:04 -0400)
commit69cf09c821b94668f03c942585d99c13121731c8
tree94021bedc39393fece76cce79a84b34d0d35ecf8
parent088ae5995a75ab06882322fd3ef39f12df06bbbc
avoid setting errno when checking for tty

setting errno here is completely valid, but some programs, notably
busybox printf, assume that errno will not be set during output and
treat this as an error condition. in any case, skipping it slightly
reduces code size and saves time.
src/stdio/__fdopen.c
src/stdio/__stdout_write.c