From fb5af9af97ff27f9e6dc43b5bf2cc439e90a52ca Mon Sep 17 00:00:00 2001 From: didg Date: Thu, 15 Oct 2009 12:08:22 +0000 Subject: [PATCH] remove some const qualifier for volume parameter, cname() and dir_lookup(), it's not a constant --- etc/afpd/directory.c | 6 +++--- etc/afpd/directory.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/etc/afpd/directory.c b/etc/afpd/directory.c index a650806f..0fef50d5 100644 --- a/etc/afpd/directory.c +++ b/etc/afpd/directory.c @@ -1,5 +1,5 @@ /* - * $Id: directory.c,v 1.108 2009-10-15 10:43:13 didg Exp $ + * $Id: directory.c,v 1.109 2009-10-15 12:08:22 didg Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -167,7 +167,7 @@ struct dir *dir = NULL; * and we are really bad in this case. */ struct dir * - dirlookup( const struct vol *vol, u_int32_t did) + dirlookup( struct vol *vol, u_int32_t did) { struct dir *ret; char *upath; @@ -1184,7 +1184,7 @@ static struct path *invalidate (const struct vol *vol, struct dir *dir, struct p */ struct path * -cname(const struct vol *vol, struct dir *dir, char **cpath) +cname(struct vol *vol, struct dir *dir, char **cpath) { struct dir *cdir, *scdir=NULL; static char path[ MAXPATHLEN + 1]; diff --git a/etc/afpd/directory.h b/etc/afpd/directory.h index 6a278662..64a3ef4f 100644 --- a/etc/afpd/directory.h +++ b/etc/afpd/directory.h @@ -1,5 +1,5 @@ /* - * $Id: directory.h,v 1.30 2009-10-15 10:43:13 didg Exp $ + * $Id: directory.h,v 1.31 2009-10-15 12:08:22 didg Exp $ * * Copyright (c) 1990,1991 Regents of The University of Michigan. * All Rights Reserved. @@ -117,7 +117,7 @@ extern struct dir *dirnew (const char *, const char *); extern void dirfreename (struct dir *); extern void dirfree (struct dir *); extern struct dir *dirsearch (const struct vol *, u_int32_t); -extern struct dir *dirlookup (const struct vol *, u_int32_t); +extern struct dir *dirlookup (struct vol *, u_int32_t); extern struct dir *dirsearch_byname (const struct vol *, struct dir *,char *); extern struct dir *adddir (struct vol *, struct dir *, @@ -125,7 +125,7 @@ extern struct dir *adddir (struct vol *, struct dir *, extern int movecwd (const struct vol *, struct dir *); extern int deletecurdir (const struct vol *); -extern struct path *cname (const struct vol *, struct dir *, +extern struct path *cname (struct vol *, struct dir *, char **); extern mode_t mtoumode (struct maccess *); extern void utommode (struct stat *, struct maccess *); -- 2.39.2