Automatically reformat com32/lib/sys/isatty.c using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
int isatty(int fd)
{
- struct file_info *fp = &__file_info[fd];
+ struct file_info *fp = &__file_info[fd];
- if ( fd >= NFILES || !fp->iop ) {
- errno = EBADF;
- return -1;
- }
+ if (fd >= NFILES || !fp->iop) {
+ errno = EBADF;
+ return -1;
+ }
- /* __DEV_TTY == 1 */
- return (fp->iop->flags & __DEV_TTY);
+ /* __DEV_TTY == 1 */
+ return (fp->iop->flags & __DEV_TTY);
}