From 16b4e5aa5c17ca39c5a1be22c5ac4b612c323ccb Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 21 Nov 1999 04:28:48 +0000 Subject: 1999-11-20 Roland McGrath * 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. --- isofs/rr.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'isofs/rr.h') diff --git a/isofs/rr.h b/isofs/rr.h index b7a3c40d..ab80e4bd 100644 --- a/isofs/rr.h +++ b/isofs/rr.h @@ -1,5 +1,5 @@ -/* - Copyright (C) 1997 Free Software Foundation, Inc. +/* + Copyright (C) 1997, 1999 Free Software Foundation, Inc. Written by Thomas Bushnell, n/BSG. This file is part of the GNU Hurd. @@ -31,16 +31,16 @@ struct rrip_lookup /* PN */ dev_t rdev; - + /* SL */ char *target; - + /* NM */ char *name; /* name of this entry if changed (malloced) */ - + /* CL */ off_t newloc; /* relocated directory */ - + /* PL */ off_t parloc; /* parent of relocated directory */ @@ -60,10 +60,10 @@ struct rrip_lookup /* TR */ size_t translen; char *trans; - + /* MD */ mode_t allmode; - + /* FL */ long flags; @@ -198,7 +198,7 @@ struct rr_pl }; /* The body of a TF (Time Stamp) field. */ -struct rr_tf +struct rr_tf { u_char flags; char data[0]; @@ -259,7 +259,8 @@ struct gn_fl /* Rock-Ridge related functions. */ -int rrip_match_lookup (struct dirrect *, char *, size_t, struct rrip_lookup *); +int rrip_match_lookup (struct dirrect *, const char *, + size_t, struct rrip_lookup *); void rrip_lookup (struct dirrect *, struct rrip_lookup *, int); void rrip_initialize (struct dirrect *); void release_rrip (struct rrip_lookup *); -- cgit v1.2.3