summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2004-08-22 08:57:05 +0000
committermaxim <maxim@FreeBSD.org>2004-08-22 08:57:05 +0000
commitc29bdb1cc8f87daa0825fd1487e13c63356a92d5 (patch)
tree04906f10e776f8ce86ce6724cd8865cdca850e7c /sys/boot/common
parent42b3943c2d7f8893ba35dba75dfe46a527c5bd58 (diff)
downloadFreeBSD-src-c29bdb1cc8f87daa0825fd1487e13c63356a92d5.zip
FreeBSD-src-c29bdb1cc8f87daa0825fd1487e13c63356a92d5.tar.gz
Trim EOL white spaces.
Diffstat (limited to 'sys/boot/common')
-rw-r--r--sys/boot/common/load.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/boot/common/load.c b/sys/boot/common/load.c
index 7470f96..a4c665d 100644
--- a/sys/boot/common/load.c
+++ b/sys/boot/common/load.c
@@ -45,10 +45,10 @@ filedup(const char *path, int flags)
char *buf;
int fd;
size_t size, result;
-
+
if ((fd = open(path, F_READ | flags)) == -1)
return(NULL);
-
+
printf("%s open, flags 0x%x\n", path, files[fd].f_flags);
buf = alloc(LOAD_TINYBUF);
@@ -68,8 +68,7 @@ filedup(const char *path, int flags)
printf("tinybuf loaded, size %d\n", size);
getchar();
-
-
+
/* Read everything until we know how big it is */
for (;;) {
result = read(fd, buf, LOAD_TINYBUF);
@@ -82,7 +81,7 @@ filedup(const char *path, int flags)
break;
size += result;
}
-
+
/* discard the old buffer, close the file */
free(buf, LOAD_TINYBUF);
close(fd);
OpenPOWER on IntegriCloud