summaryrefslogtreecommitdiff
path: root/sys/adosfs/adlookup.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-10 07:25:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-10 07:25:20 +0000
commit25d24a2bae8fd6306900ca6e3a1b5f254a85bfc0 (patch)
tree2b3b49380719a747eb2a0c053cf8e7312be10c9f /sys/adosfs/adlookup.c
parent332935dd8b0b130d349a7889ea13c5537c878d71 (diff)
internationalize, 64 bit clean
Diffstat (limited to 'sys/adosfs/adlookup.c')
-rw-r--r--sys/adosfs/adlookup.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/adosfs/adlookup.c b/sys/adosfs/adlookup.c
index 5bd2e4aabd9..6ff6d17437b 100644
--- a/sys/adosfs/adlookup.c
+++ b/sys/adosfs/adlookup.c
@@ -1,5 +1,5 @@
-/* $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 $ */
+/* $OpenBSD: adlookup.c,v 1.5 1996/06/10 07:25:18 deraadt Exp $ */
+/* $NetBSD: adlookup.c,v 1.13.4.1 1996/05/27 09:53:50 is Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -41,11 +41,11 @@
#include <adosfs/adosfs.h>
#ifdef ADOSFS_EXACTMATCH
-#define strmatch(s1, l1, s2, l2) \
+#define strmatch(s1, l1, s2, l2, i) \
((l1) == (l2) && bcmp((s1), (s2), (l1)) == 0)
#else
-#define strmatch(s1, l1, s2, l2) \
- ((l1) == (l2) && strncasecmp((s1), (s2), (l1)) == 0)
+#define strmatch(s1, l1, s2, l2, i) \
+ ((l1) == (l2) && adoscaseequ((s1), (s2), (l1), (i)))
#endif
/*
@@ -214,7 +214,8 @@ adosfs_lookup(v)
adp->tabi[hval] = -adp->tabi[hval];
}
}
- if (strmatch(pelt, plen, ap->name, strlen(ap->name)))
+ if (strmatch(pelt, plen, ap->name, strlen(ap->name),
+ IS_INTER(adp->amp)))
goto found;
bn = ap->hashf;
vput(*vpp);