]> arthur.barton.de Git - netatalk.git/commitdiff
remove some const qualifier for volume parameter, cname() and dir_lookup(), it's...
authordidg <didg>
Thu, 15 Oct 2009 12:08:22 +0000 (12:08 +0000)
committerdidg <didg>
Thu, 15 Oct 2009 12:08:22 +0000 (12:08 +0000)
etc/afpd/directory.c
etc/afpd/directory.h

index a650806ff53597a5b6957847a18582d82fe0c2a5..0fef50d54fa6e74e75e5f86b8facab0ee9fd4b2b 100644 (file)
@@ -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];
index 6a27866217a61c6487393f09ea3a3c9262d1618b..64a3ef4f27db0f374eca9f5c9ade176f132c39a5 100644 (file)
@@ -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 *);