diff options
author | phk <phk@FreeBSD.org> | 2003-03-15 22:22:11 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-03-15 22:22:11 +0000 |
commit | 103651196ed65915ea3df7756b18d8fb1ef91163 (patch) | |
tree | bf986eec5e7ff24bb2091be9d5a9b080d413f52d | |
parent | 1b534a022f28830398d7ffc225413687bf6b3b64 (diff) | |
download | FreeBSD-src-103651196ed65915ea3df7756b18d8fb1ef91163.zip FreeBSD-src-103651196ed65915ea3df7756b18d8fb1ef91163.tar.gz |
And I managed to make a regression here too.
I have too many source trees :-(
-rw-r--r-- | lib/libdevstat/devstat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libdevstat/devstat.c b/lib/libdevstat/devstat.c index e5047be..33f9618 100644 --- a/lib/libdevstat/devstat.c +++ b/lib/libdevstat/devstat.c @@ -339,7 +339,7 @@ devstat_getdevs(kvm_t *kd, struct statinfo *stats) * error. Don't bother setting the error string, since * getnumdevs() has already done that for us. */ - if ((dinfo->numdevs = devstat_getnumdevs(NULL)) < 0) + if ((dinfo->numdevs = devstat_getnumdevs(kd)) < 0) return(-1); /* @@ -374,7 +374,7 @@ devstat_getdevs(kvm_t *kd, struct statinfo *stats) * No need to set the error string here, * devstat_getnumdevs() will do that if it fails. */ - if ((dinfo->numdevs = devstat_getnumdevs(NULL)) < 0) + if ((dinfo->numdevs = devstat_getnumdevs(kd)) < 0) return(-1); dssize = (dinfo->numdevs * @@ -404,7 +404,7 @@ devstat_getdevs(kvm_t *kd, struct statinfo *stats) * This is of course non-atomic, but since we are working * on a core dump, the generation is unlikely to change */ - if ((dinfo->numdevs = devstat_getnumdevs(NULL)) == -1) + if ((dinfo->numdevs = devstat_getnumdevs(kd)) == -1) return(-1); if ((dinfo->mem_ptr = get_devstat_kvm(kd)) == NULL) return(-1); @@ -431,8 +431,8 @@ devstat_getdevs(kvm_t *kd, struct statinfo *stats) * necessary. */ if (oldgeneration != dinfo->generation) { - if (devstat_getnumdevs(NULL) != dinfo->numdevs) { - if ((dinfo->numdevs = devstat_getnumdevs(NULL)) < 0) + if (devstat_getnumdevs(kd) != dinfo->numdevs) { + if ((dinfo->numdevs = devstat_getnumdevs(kd)) < 0) return(-1); dssize = (dinfo->numdevs * sizeof(struct devstat)) + sizeof(long); |