summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-02-15 20:18:52 +0000
committerdim <dim@FreeBSD.org>2011-02-15 20:18:52 +0000
commitf94cf905fb258e0de23e22179042ea6c7ab028a7 (patch)
tree37d9c6ad8b2d3269033675c39ec26971fb6e358f /sys/boot/common
parentfd358eea37448bed8de4728001309e0b63427039 (diff)
downloadFreeBSD-src-f94cf905fb258e0de23e22179042ea6c7ab028a7.zip
FreeBSD-src-f94cf905fb258e0de23e22179042ea6c7ab028a7.tar.gz
Apply a few small optimizations to boot2's code, to make it shrink a
little further. This gets us further on the way to be able to build it successfully with clang. Using in-tree gcc, this shrinks boot2.bin with 60 bytes, the in-tree clang shaves off 72 bytes, and ToT clang 84 bytes. Submitted by: rdivacky Reviewed by: imp
Diffstat (limited to 'sys/boot/common')
-rw-r--r--sys/boot/common/ufsread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/ufsread.c b/sys/boot/common/ufsread.c
index 5d0e8af..68fdec9 100644
--- a/sys/boot/common/ufsread.c
+++ b/sys/boot/common/ufsread.c
@@ -122,7 +122,7 @@ lookup(const char *path)
const char *s;
ino_t ino;
ssize_t n;
- int dt;
+ u_int8_t dt;
ino = ROOTINO;
dt = DT_DIR;
OpenPOWER on IntegriCloud