summaryrefslogtreecommitdiffstats
path: root/sys/boot/pc98
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2012-08-05 14:05:11 +0000
committernyan <nyan@FreeBSD.org>2012-08-05 14:05:11 +0000
commitec331ff013fc7814a1818928e83f9c68a87ab926 (patch)
tree41aadfac837c9a071925f3fbd1aa97395829f0d8 /sys/boot/pc98
parent6bdab82e0ad7726e705a69f2d0d5987cf035484b (diff)
downloadFreeBSD-src-ec331ff013fc7814a1818928e83f9c68a87ab926.zip
FreeBSD-src-ec331ff013fc7814a1818928e83f9c68a87ab926.tar.gz
MFi386: the part of r219452 and r236405.
- bunch of variables are turned into uint8_t. - Remove unnecessary initializations.
Diffstat (limited to 'sys/boot/pc98')
-rw-r--r--sys/boot/pc98/boot2/boot2.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/boot/pc98/boot2/boot2.c b/sys/boot/pc98/boot2/boot2.c
index 95384bd..e3e0b86 100644
--- a/sys/boot/pc98/boot2/boot2.c
+++ b/sys/boot/pc98/boot2/boot2.c
@@ -126,13 +126,13 @@ static struct dsk {
unsigned unit;
unsigned head;
unsigned sec;
- unsigned slice;
- unsigned part;
+ uint8_t slice;
+ uint8_t part;
unsigned start;
} dsk;
static char cmd[512], cmddup[512], knamebuf[1024];
-static const char *kname = NULL;
-static uint32_t opts = 0;
+static const char *kname;
+static uint32_t opts;
static int comspeed = SIOSPD;
static struct bootinfo bootinfo;
static uint8_t ioctrl = IO_KEYBOARD;
@@ -615,7 +615,8 @@ dskread(void *buf, unsigned lba, unsigned nblk)
struct pc98_partition *dp;
struct disklabel *d;
char *sec;
- unsigned sl, i;
+ unsigned i;
+ uint8_t sl;
u_char *p;
if (!dsk_meta) {
OpenPOWER on IntegriCloud