summaryrefslogtreecommitdiffstats
path: root/usr.bin/fstat
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-03-15 14:30:26 +0000
committerphk <phk@FreeBSD.org>2005-03-15 14:30:26 +0000
commit2116975c84fba0dc998eb4299ecc0a821b5285ba (patch)
tree191d2d7ee0add424e73103b69b7de3f4f64323a2 /usr.bin/fstat
parent384241be9fdbbd8f24ec6b1a920ff5a3f0fea327 (diff)
downloadFreeBSD-src-2116975c84fba0dc998eb4299ecc0a821b5285ba.zip
FreeBSD-src-2116975c84fba0dc998eb4299ecc0a821b5285ba.tar.gz
Dike out unwarranted si_udev fondling.
Diffstat (limited to 'usr.bin/fstat')
-rw-r--r--usr.bin/fstat/fstat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c
index 86eee92..64b2f19 100644
--- a/usr.bin/fstat/fstat.c
+++ b/usr.bin/fstat/fstat.c
@@ -876,7 +876,8 @@ dev2udev(struct cdev *dev)
struct cdev si;
if (KVM_READ(dev, &si, sizeof si)) {
- return si.si_udev;
+ /* XXX: FIXME! */
+ return 0;
} else {
dprintf(stderr, "can't convert cdev *%p to a dev_t\n", dev);
return -1;
OpenPOWER on IntegriCloud