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.
This commit is contained in:
davide 2013-06-28 20:32:48 +00:00
parent 2ce84556da
commit a0c5d96b0a

View File

@ -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)