From a0c5d96b0afd2c5fdf7e4ffe2c4c54b832a5dbf2 Mon Sep 17 00:00:00 2001 From: davide Date: Fri, 28 Jun 2013 20:32:48 +0000 Subject: Properly use v_data field. This magically worked (even if wrong) until now because v_data is the first field of the structure, but it's not something we should rely on. --- sys/fs/smbfs/smbfs_node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/fs/smbfs/smbfs_node.c') diff --git a/sys/fs/smbfs/smbfs_node.c b/sys/fs/smbfs/smbfs_node.c index 481fa1d..1b55ff3 100644 --- a/sys/fs/smbfs/smbfs_node.c +++ b/sys/fs/smbfs/smbfs_node.c @@ -89,7 +89,7 @@ smbfs_vnode_cmp(struct vnode *vp, void *_sc) struct smbnode *np; struct smbcmp *sc; - np = (struct smbnode *) vp; + np = (struct smbnode *) vp->v_data; sc = (struct smbcmp *) _sc; if (np->n_parent != sc->n_parent || np->n_nmlen != sc->n_nmlen || bcmp(sc->n_name, np->n_name, sc->n_nmlen) != 0) -- cgit v1.1