summaryrefslogtreecommitdiff
path: root/sys/adosfs/adlookup.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-21 22:33:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-21 22:33:19 +0000
commit67d88b0a9910a68bb666b448d2dac29cb4d3d8c2 (patch)
tree967b89f6e07398a22bd8c76d30179b648776542d /sys/adosfs/adlookup.c
parentba95d3c1d69cdb251d15a12ebf70f50b0ea2019b (diff)
partial sync with netbsd 960418, more to come
Diffstat (limited to 'sys/adosfs/adlookup.c')
-rw-r--r--sys/adosfs/adlookup.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/adosfs/adlookup.c b/sys/adosfs/adlookup.c
index c1fb222ebec..5bd2e4aabd9 100644
--- a/sys/adosfs/adlookup.c
+++ b/sys/adosfs/adlookup.c
@@ -1,8 +1,9 @@
-/* $OpenBSD: adlookup.c,v 1.3 1996/02/26 14:18:17 niklas Exp $ */
-/* $NetBSD: adlookup.c,v 1.12 1996/02/13 17:05:47 christos Exp $ */
+/* $OpenBSD: adlookup.c,v 1.4 1996/04/21 22:14:33 deraadt Exp $ */
+/* $NetBSD: adlookup.c,v 1.13 1996/04/05 05:06:07 mhitch Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
+ * Copyright (c) 1996 Matthias Scheler
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -75,7 +76,7 @@ adosfs_lookup(v)
struct anode *adp; /* anode of search dir */
struct ucred *ucp; /* lookup credentials */
u_long bn, plen, hval;
- char *pelt;
+ u_char *pelt;
#ifdef ADOSFS_DIAGNOSTIC
advopprint(sp);
@@ -91,7 +92,7 @@ adosfs_lookup(v)
last = flags & ISLASTCN;
lockp = flags & LOCKPARENT;
wantp = flags & (LOCKPARENT | WANTPARENT);
- pelt = cnp->cn_nameptr;
+ pelt = (u_char *)cnp->cn_nameptr;
plen = cnp->cn_namelen;
nocache = 0;
@@ -186,7 +187,7 @@ adosfs_lookup(v)
* then walk the chain. if chain has not been fully
* walked before, track the count in `tabi'
*/
- hval = adoshash(pelt, plen, adp->ntabent);
+ hval = adoshash(pelt, plen, adp->ntabent, IS_INTER(adp->amp));
bn = adp->tab[hval];
i = min(adp->tabi[hval], 0);
while (bn != 0) {