Automatically reformat com32/lib/sys/write.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>
ssize_t write(int fd, void *buf, size_t count)
{
- struct file_info *fp = &__file_info[fd];
+ struct file_info *fp = &__file_info[fd];
- if ( fd >= NFILES || !fp->oop ) {
- errno = EBADF;
- return -1;
- }
+ if (fd >= NFILES || !fp->oop) {
+ errno = EBADF;
+ return -1;
+ }
- return fp->oop->write(fp, buf, count);
+ return fp->oop->write(fp, buf, count);
}