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:
parent
f348204c94
commit
b54a17cd2f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163852
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user