aboutsummaryrefslogtreecommitdiff
path: root/sbin/dumpon
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2006-10-31 22:36:49 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2006-10-31 22:36:49 +0000
commitb54a17cd2f06396001e486d55e165f42cc68d5d6 (patch)
treeeabb49fe072c0a25932801021df7f82a57b15fe0 /sbin/dumpon
parentf348204c94ee223862db590e4e940b6f32d888cb (diff)
downloadsrc-b54a17cd2f06396001e486d55e165f42cc68d5d6.tar.gz
src-b54a17cd2f06396001e486d55e165f42cc68d5d6.zip
Whitespace and style nits.
Notes
Notes: svn path=/head/; revision=163852
Diffstat (limited to 'sbin/dumpon')
-rw-r--r--sbin/dumpon/dumpon.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/dumpon/dumpon.c b/sbin/dumpon/dumpon.c
index 9bb5c7e9deea..73d46b00eb3c 100644
--- a/sbin/dumpon/dumpon.c
+++ b/sbin/dumpon/dumpon.c
@@ -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)