diff options
author | maxim <maxim@FreeBSD.org> | 2004-08-22 08:57:05 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2004-08-22 08:57:05 +0000 |
commit | c29bdb1cc8f87daa0825fd1487e13c63356a92d5 (patch) | |
tree | 04906f10e776f8ce86ce6724cd8865cdca850e7c /sys/boot/common/load.c | |
parent | 42b3943c2d7f8893ba35dba75dfe46a527c5bd58 (diff) | |
download | FreeBSD-src-c29bdb1cc8f87daa0825fd1487e13c63356a92d5.zip FreeBSD-src-c29bdb1cc8f87daa0825fd1487e13c63356a92d5.tar.gz |
Trim EOL white spaces.
Diffstat (limited to 'sys/boot/common/load.c')
-rw-r--r-- | sys/boot/common/load.c | 9 |
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); |