diff options
author | jhb <jhb@FreeBSD.org> | 2006-10-31 22:36:49 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-10-31 22:36:49 +0000 |
commit | cd8e0d8e34bfc5f6b2c47f2416003b83a01220f9 (patch) | |
tree | eabb49fe072c0a25932801021df7f82a57b15fe0 | |
parent | ac6b680a94af45a9e5a7c1475fd6f154cc6cec34 (diff) | |
download | FreeBSD-src-cd8e0d8e34bfc5f6b2c47f2416003b83a01220f9.zip FreeBSD-src-cd8e0d8e34bfc5f6b2c47f2416003b83a01220f9.tar.gz |
Whitespace and style nits.
-rw-r--r-- | sbin/dumpon/dumpon.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/dumpon/dumpon.c b/sbin/dumpon/dumpon.c index 9bb5c7e..73d46b0 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) |