mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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
52612ae5d3
commit
bbc6d2c1af
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252355
|
@ -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 a new issue