Date: Sun, 5 Aug 2012 14:05:11 +0000 (UTC) From: Takahashi Yoshihiro <nyan@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r239063 - head/sys/boot/pc98/boot2 Message-ID: <201208051405.q75E5BPA090746@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nyan Date: Sun Aug 5 14:05:11 2012 New Revision: 239063 URL: http://svn.freebsd.org/changeset/base/239063 Log: MFi386: the part of r219452 and r236405. - bunch of variables are turned into uint8_t. - Remove unnecessary initializations. Modified: head/sys/boot/pc98/boot2/boot2.c Modified: head/sys/boot/pc98/boot2/boot2.c ============================================================================== --- head/sys/boot/pc98/boot2/boot2.c Sun Aug 5 13:40:35 2012 (r239062) +++ head/sys/boot/pc98/boot2/boot2.c Sun Aug 5 14:05:11 2012 (r239063) @@ -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, unsigne struct pc98_partition *dp; struct disklabel *d; char *sec; - unsigned sl, i; + unsigned i; + uint8_t sl; u_char *p; if (!dsk_meta) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208051405.q75E5BPA090746>