diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-15 22:22:11 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-15 22:22:11 +0000 |
commit | 16830b0cc2a1f9eb4cf3bc7daae2ef49148bf474 (patch) | |
tree | bf986eec5e7ff24bb2091be9d5a9b080d413f52d /lib/libdevstat | |
parent | d15cd510018a0d7e230e5d2c87add8065a583a26 (diff) | |
download | src-16830b0cc2a1f9eb4cf3bc7daae2ef49148bf474.tar.gz src-16830b0cc2a1f9eb4cf3bc7daae2ef49148bf474.zip |
And I managed to make a regression here too.
I have too many source trees :-(
Notes
Notes:
svn path=/head/; revision=112293
Diffstat (limited to 'lib/libdevstat')
-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 e5047be09a2d..33f961888867 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); |