summaryrefslogtreecommitdiff
path: root/isofs/lookup.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-11-21 04:28:48 +0000
committerRoland McGrath <roland@gnu.org>1999-11-21 04:28:48 +0000
commit16b4e5aa5c17ca39c5a1be22c5ac4b612c323ccb (patch)
treef695a73fed447c951372e7c22dc9032dadc9a555 /isofs/lookup.c
parentd4139b9468005e145ba4c9fffa90b212de05e7d5 (diff)
1999-11-20 Roland McGrath <roland@baalperazim.frob.com>
* lookup.c (dirscanblock): Add const to type of NAME parameter. (isonamematch): Likewise. * rr.c (rrip_match_lookup): Likewise. (rrip_work): Likewise. Change char -> size_t for MATCH_NAMELEN. * rr.h: Update decls.
Diffstat (limited to 'isofs/lookup.c')
-rw-r--r--isofs/lookup.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/isofs/lookup.c b/isofs/lookup.c
index 2e3465b9..6c259769 100644
--- a/isofs/lookup.c
+++ b/isofs/lookup.c
@@ -23,11 +23,12 @@
#include "isofs.h"
/* Forward */
-static error_t
-dirscanblock (void *, char *, size_t, struct dirrect **, struct rrip_lookup *);
+static error_t dirscanblock (void *, const char *, size_t,
+ struct dirrect **, struct rrip_lookup *);
static int
-isonamematch (char *dirname, size_t dnamelen, char *username, size_t unamelen)
+isonamematch (const char *dirname, size_t dnamelen,
+ const char *username, size_t unamelen)
{
/* Special representations for `.' and `..' */
if (dnamelen == 1 && dirname[0] == '\0')
@@ -148,7 +149,7 @@ diskfs_lookup_hard (struct node *dp, const char *name, enum lookup_type type,
/* Scan one logical sector of directory contents (at address BLKADDR)
for NAME of length NAMELEN. Return its address in *RECORD. */
static error_t
-dirscanblock (void *blkaddr, char *name, size_t namelen,
+dirscanblock (void *blkaddr, const char *name, size_t namelen,
struct dirrect **record, struct rrip_lookup *rr)
{
struct dirrect *entry;