diff options
author | Warner Losh <imp@FreeBSD.org> | 2003-01-14 16:33:37 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2003-01-14 16:33:37 +0000 |
commit | b24431ad30003182ce8e61d9f9dce7d9c1ee83ea (patch) | |
tree | 94686cebe97e5fa67e3387db34fa94a791676240 | |
parent | f99a4046d83609160b00d895b2a6a91dfc57e9dd (diff) | |
download | src-b24431ad30003182ce8e61d9f9dce7d9c1ee83ea.tar.gz src-b24431ad30003182ce8e61d9f9dce7d9c1ee83ea.zip |
Save 4 more bytes by not initializing opts to 0. This moves it from
the data section to the bss section givig us initialization for free.
Noticed by: bde
Notes
Notes:
svn path=/head/; revision=109235
-rw-r--r-- | sys/boot/i386/boot2/boot2.c | 2 | ||||
-rw-r--r-- | sys/boot/i386/gptboot/gptboot.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/i386/boot2/boot2.c b/sys/boot/i386/boot2/boot2.c index 6105ddc765e9..50f84001fe29 100644 --- a/sys/boot/i386/boot2/boot2.c +++ b/sys/boot/i386/boot2/boot2.c @@ -111,7 +111,7 @@ static struct dsk { } dsk; static char cmd[512]; static char kname[1024]; -static uint32_t opts = 0; +static uint32_t opts; static struct bootinfo bootinfo; static uint8_t ioctrl = IO_KEYBOARD; diff --git a/sys/boot/i386/gptboot/gptboot.c b/sys/boot/i386/gptboot/gptboot.c index 6105ddc765e9..50f84001fe29 100644 --- a/sys/boot/i386/gptboot/gptboot.c +++ b/sys/boot/i386/gptboot/gptboot.c @@ -111,7 +111,7 @@ static struct dsk { } dsk; static char cmd[512]; static char kname[1024]; -static uint32_t opts = 0; +static uint32_t opts; static struct bootinfo bootinfo; static uint8_t ioctrl = IO_KEYBOARD; |