summaryrefslogtreecommitdiff
path: root/usr.bin/systat/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/systat/fetch.c')
-rw-r--r--usr.bin/systat/fetch.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/systat/fetch.c b/usr.bin/systat/fetch.c
index 0fe37c532a712..4bb38bb12e730 100644
--- a/usr.bin/systat/fetch.c
+++ b/usr.bin/systat/fetch.c
@@ -68,9 +68,8 @@ void getsysctl(const char *name, void *ptr, size_t len)
strerror(errno));
}
if (nlen != len) {
- error("sysctl(%s...) expected %lu, got %lu", name,
- (unsigned long)len, (unsigned long)nlen);
- }
+ error("sysctl(%s...) expected %zu, got %zu", name, len, nlen);
+ }
}
/*