Purely whitespace changes bringing this file closer to style(9).

Curiously, changing whitespace seems to cause the md5 of the .o files to differ
these days hence the following testing strategy:

Tested by:	objdump -d | md5 (both in-tree clang and lang/gcc6)
This commit is contained in:
Benno Rice 2018-02-21 18:10:50 +00:00
parent 7dcffa9042
commit 50d519d9fb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329737

View File

@ -136,6 +136,7 @@ memcpy(void *dst, const void *src, int len)
static inline int
strcmp(const char *s1, const char *s2)
{
for (; *s1 == *s2 && *s1; s1++, s2++);
return (unsigned char)*s1 - (unsigned char)*s2;
}
@ -146,6 +147,7 @@ strcmp(const char *s1, const char *s2)
static int
xfsread(ufs_ino_t inode, void *buf, size_t nbyte)
{
if ((size_t)fsread(inode, buf, nbyte) != nbyte) {
printf("Invalid %s\n", "format");
return -1;
@ -186,6 +188,7 @@ getstr(void)
static inline void
putc(int c)
{
v86.addr = 0x10;
v86.eax = 0xe00 | (c & 0xff);
v86.ebx = 0x7;
@ -269,6 +272,7 @@ main(void)
void
exit(int x)
{
}
static void
@ -370,7 +374,8 @@ parse()
if (*(uint8_t *)PTOV(0x496) & 0x10) {
cp = "yes";
} else {
opts |= OPT_SET(RBX_DUAL) | OPT_SET(RBX_SERIAL);
opts |= OPT_SET(RBX_DUAL) |
OPT_SET(RBX_SERIAL);
cp = "no";
}
printf("Keyboard: %s\n", cp);
@ -378,13 +383,16 @@ parse()
#if SERIAL
} else if (c == 'S') {
j = 0;
while ((unsigned int)(i = *arg++ - '0') <= 9)
while ((u_int)(i = *arg++ - '0') <= 9)
j = j * 10 + i;
if (j > 0 && i == -'0') {
comspeed = j;
break;
}
/* Fall through to error below ('S' not in optstr[]). */
/*
* Fall through to error below
* ('S' not in optstr[]).
*/
#endif
}
for (i = 0; c != optstr[i]; i++)
@ -411,7 +419,7 @@ parse()
arg += 2;
}
if (q - arg != 2)
return -1;
return (-1);
for (i = 0; arg[0] != dev_nm[i][0] ||
arg[1] != dev_nm[i][1]; i++)
if (i == NDEV - 1)
@ -562,6 +570,7 @@ printf(const char *fmt,...)
static void
putchar(int c)
{
if (c == '\n')
xputc('\r');
xputc(c);
@ -614,6 +623,7 @@ keyhit(unsigned ticks)
static int
xputc(int c)
{
if (DO_KBD)
putc(c);
if (DO_SIO)
@ -624,6 +634,7 @@ xputc(int c)
static int
getc(int fn)
{
v86.addr = 0x16;
v86.eax = fn << 8;
v86int();
@ -633,6 +644,7 @@ getc(int fn)
static int
xgetc(int fn)
{
if (OPT_CHECK(RBX_NOINTR))
return 0;
for (;;) {