diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ufs/ufs_dirhash.c | 4 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_lookup.c | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/sys/ufs/ufs/ufs_dirhash.c b/sys/ufs/ufs/ufs_dirhash.c index a71d4e2d2a4..77f6e94dc59 100644 --- a/sys/ufs/ufs/ufs_dirhash.c +++ b/sys/ufs/ufs/ufs_dirhash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ufs_dirhash.c,v 1.24 2012/08/16 04:52:51 tedu Exp $ */ +/* $OpenBSD: ufs_dirhash.c,v 1.25 2013/12/12 19:15:32 tedu Exp $ */ /* * Copyright (c) 2001, 2002 Ian Dowse. All rights reserved. * @@ -412,7 +412,7 @@ restart: return (EJUSTRETURN); } if (dp->d_namlen == namelen && - bcmp(dp->d_name, name, namelen) == 0) { + memcmp(dp->d_name, name, namelen) == 0) { /* Found. Get the prev offset if needed. */ if (prevoffp != NULL) { if (offset & (DIRBLKSIZ - 1)) { diff --git a/sys/ufs/ufs/ufs_lookup.c b/sys/ufs/ufs/ufs_lookup.c index b0aefdd1a43..7b1991707e5 100644 --- a/sys/ufs/ufs/ufs_lookup.c +++ b/sys/ufs/ufs/ufs_lookup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ufs_lookup.c,v 1.43 2013/12/12 19:00:10 tedu Exp $ */ +/* $OpenBSD: ufs_lookup.c,v 1.44 2013/12/12 19:15:32 tedu Exp $ */ /* $NetBSD: ufs_lookup.c,v 1.7 1996/02/09 22:36:06 christos Exp $ */ /* @@ -335,8 +335,7 @@ searchloop: namlen = ep->d_namlen; # endif if (namlen == cnp->cn_namelen && - !bcmp(cnp->cn_nameptr, ep->d_name, - (unsigned)namlen)) { + !memcmp(cnp->cn_nameptr, ep->d_name, namlen)) { #ifdef UFS_DIRHASH foundentry: #endif |