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:
parent
2ce84556da
commit
a0c5d96b0a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user