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 Italiano 2013-06-28 20:32:48 +00:00
parent 52612ae5d3
commit bbc6d2c1af
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252355

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)