Automatically reformat com32/lib/sys/openconsole.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 openconsole(const struct input_dev *idev, const struct output_dev *odev)
{
- close(0);
- if ( opendev(idev, odev, O_RDONLY) != 0 )
- return -1;
- close(1);
- if ( opendev(idev, odev, O_WRONLY) != 1 )
- return -1;
- close(2);
- if ( opendev(idev, odev, O_WRONLY) != 2 )
- return -1;
+ close(0);
+ if (opendev(idev, odev, O_RDONLY) != 0)
+ return -1;
+ close(1);
+ if (opendev(idev, odev, O_WRONLY) != 1)
+ return -1;
+ close(2);
+ if (opendev(idev, odev, O_WRONLY) != 2)
+ return -1;
- return 0;
+ return 0;
}