aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2003-01-14 16:33:37 +0000
committerWarner Losh <imp@FreeBSD.org>2003-01-14 16:33:37 +0000
commitb24431ad30003182ce8e61d9f9dce7d9c1ee83ea (patch)
tree94686cebe97e5fa67e3387db34fa94a791676240
parentf99a4046d83609160b00d895b2a6a91dfc57e9dd (diff)
downloadsrc-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.c2
-rw-r--r--sys/boot/i386/gptboot/gptboot.c2
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;