1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-27 08:00:11 +00:00

Whitespace and style nits.

This commit is contained in:
John Baldwin 2006-10-31 22:36:49 +00:00
parent f348204c94
commit b54a17cd2f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163852

View File

@ -70,18 +70,17 @@ static void
check_size(int fd, const char *fn)
{
int name[] = { CTL_HW, HW_PHYSMEM };
size_t namelen = sizeof name / sizeof *name;
size_t namelen = sizeof(name) / sizeof(*name);
unsigned long physmem;
size_t len;
off_t mediasize;
int minidump;
len = sizeof minidump;
len = sizeof(minidump);
if (sysctlbyname("debug.minidump", &minidump, &len, NULL, 0) == 0 &&
minidump == 1)
return;
len = sizeof physmem;
len = sizeof(physmem);
if (sysctl(name, namelen, &physmem, &len, NULL, 0) != 0)
err(EX_OSERR, "can't get memory size");
if (ioctl(fd, DIOCGMEDIASIZE, &mediasize) != 0)