summaryrefslogtreecommitdiffstats
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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/systat/fetch.c b/usr.bin/systat/fetch.c
index f9aafb0..d159e51 100644
--- a/usr.bin/systat/fetch.c
+++ b/usr.bin/systat/fetch.c
@@ -62,17 +62,17 @@ void getsysctl(const char *name, void *ptr, size_t len)
{
size_t nlen = len;
if (sysctlbyname(name, ptr, &nlen, NULL, 0) != 0) {
- error("sysctl(%s...) failed: %s", name,
+ error("sysctl(%s...) failed: %s", name,
strerror(errno));
}
if (nlen != len) {
- error("sysctl(%s...) expected %lu, got %lu", name,
+ error("sysctl(%s...) expected %lu, got %lu", name,
(unsigned long)len, (unsigned long)nlen);
}
}
/*
- * Read sysctl data with variable size. Try some times (with increasing
+ * Read sysctl data with variable size. Try some times (with increasing
* buffers), fail if still too small.
* This is needed sysctls with possibly raplidly increasing data sizes,
* but imposes little overhead in the case of constant sizes.
@@ -84,8 +84,8 @@ void getsysctl(const char *name, void *ptr, size_t len)
/* Some defines: Number of tries. */
#define SD_NTRIES 10
/* Percent of over-allocation (initial) */
-#define SD_MARGIN 10
-/*
+#define SD_MARGIN 10
+/*
* Factor for over-allocation in percent (the margin is increased by this on
* any failed try).
*/
OpenPOWER on IntegriCloud