diff options
author | Stefan Farfeleder <stefanf@FreeBSD.org> | 2005-10-04 22:00:35 +0000 |
---|---|---|
committer | Stefan Farfeleder <stefanf@FreeBSD.org> | 2005-10-04 22:00:35 +0000 |
commit | 9dbcd4b0c0139bb955d4e6055fa915c2b9dbd3b2 (patch) | |
tree | cad9cc51299152cd42a5744e6910ecd1b3d85cdf /lib/libdevstat/devstat.c | |
parent | 6dea540edc8ffe6369d26fb8a67995723b33a8f0 (diff) | |
download | src-test2-9dbcd4b0c0139bb955d4e6055fa915c2b9dbd3b2.tar.gz src-test2-9dbcd4b0c0139bb955d4e6055fa915c2b9dbd3b2.zip |
Notes
Diffstat (limited to 'lib/libdevstat/devstat.c')
-rw-r--r-- | lib/libdevstat/devstat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libdevstat/devstat.c b/lib/libdevstat/devstat.c index c50c90b95e80..d0ba704222c5 100644 --- a/lib/libdevstat/devstat.c +++ b/lib/libdevstat/devstat.c @@ -1582,7 +1582,7 @@ readkmem_nl(kvm_t *kd, const char *name, void *buf, size_t nbytes) static char * get_devstat_kvm(kvm_t *kd) { - int error, i, wp; + int i, wp; long gen; struct devstat *nds; struct devstat ds; @@ -1592,7 +1592,6 @@ get_devstat_kvm(kvm_t *kd) if ((num_devs = devstat_getnumdevs(kd)) <= 0) return(NULL); - error = 0; if (KREADNL(kd, X_DEVICE_STATQ, dhead) == -1) return(NULL); |