diff options
-rw-r--r-- | doc/ChangeLog | 5 | ||||
-rw-r--r-- | doc/hurd.texi | 4 | ||||
-rw-r--r-- | libdiskfs/ChangeLog | 6 | ||||
-rw-r--r-- | libdiskfs/diskfs.h | 2 | ||||
-rw-r--r-- | libdiskfs/lookup.c | 2 |
5 files changed, 15 insertions, 4 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog index 02167af6..3746d021 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2008-06-10 Samuel Thibault <samuel.thibault@ens-lyon.org> + + * hurd.texi (Diskfs Callbacks): Add const qualifier to parameter + `name' of function diskfs_lookup. + 2007-11-08 Thomas Schwinge <tschwinge@gnu.org> * hurd.texi: Do some copyright, licensing and menu things as suggested diff --git a/doc/hurd.texi b/doc/hurd.texi index d0256ed7..a12b65b1 100644 --- a/doc/hurd.texi +++ b/doc/hurd.texi @@ -4018,8 +4018,8 @@ Set @code{*@var{statfsbuf}} with appropriate values to reflect the current state of the filesystem. @end deftypefun -@deftypefun error_t diskfs_lookup (@w{struct node *@var{dp}}, @w{char *@var{name}}, @w{enum lookup_type @var{type}}, @w{struct node **@var{np}}, @w{struct dirstat *@var{ds}}, @w{struct protid *@var{cred}}) -@deftypefunx error_t diskfs_lookup_hard (@w{struct node *@var{dp}}, @w{char *@var{name}}, @w{enum lookup_type @var{type}}, @w{struct node **@var{np}}, @w{struct dirstat *@var{ds}}, @w{struct protid *@var{cred}}) +@deftypefun error_t diskfs_lookup (@w{struct node *@var{dp}}, @w{const char *@var{name}}, @w{enum lookup_type @var{type}}, @w{struct node **@var{np}}, @w{struct dirstat *@var{ds}}, @w{struct protid *@var{cred}}) +@deftypefunx error_t diskfs_lookup_hard (@w{struct node *@var{dp}}, @w{const char *@var{name}}, @w{enum lookup_type @var{type}}, @w{struct node **@var{np}}, @w{struct dirstat *@var{ds}}, @w{struct protid *@var{cred}}) You should not define @code{diskfs_lookup}, because it is simply a wrapper for @code{diskfs_lookup_hard}, and is already defined in @code{libdiskfs}. diff --git a/libdiskfs/ChangeLog b/libdiskfs/ChangeLog index 134468b5..edda5995 100644 --- a/libdiskfs/ChangeLog +++ b/libdiskfs/ChangeLog @@ -1,3 +1,9 @@ +2008-06-10 Samuel Thibault <samuel.thibault@ens-lyon.org> + + * dir-lookup.c (diskfs_lookup): Add const qualifier to parameter + `name'. + * dir-lookup.h (diskfs_lookup): Likewise. + 2008-06-06 Samuel Thibault <samuel.thibault@ens-lyon.org> * dir-lookup.c (diskfs_S_dir_lookup): Unlock np in case of errors. diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h index aa9bfd95..472b9457 100644 --- a/libdiskfs/diskfs.h +++ b/libdiskfs/diskfs.h @@ -717,7 +717,7 @@ struct node *diskfs_make_node (struct disknode *dn); This function is a wrapper for diskfs_lookup_hard. */ error_t diskfs_lookup (struct node *dp, - char *name, enum lookup_type type, + const char *name, enum lookup_type type, struct node **np, struct dirstat *ds, struct protid *cred); diff --git a/libdiskfs/lookup.c b/libdiskfs/lookup.c index d81a053e..1f2a2588 100644 --- a/libdiskfs/lookup.c +++ b/libdiskfs/lookup.c @@ -82,7 +82,7 @@ static spin_lock_t cm_lock = SPIN_LOCK_INITIALIZER; This function is a wrapper for diskfs_lookup_hard. */ error_t -diskfs_lookup (struct node *dp, char *name, enum lookup_type type, +diskfs_lookup (struct node *dp, const char *name, enum lookup_type type, struct node **np, struct dirstat *ds, struct protid *cred) { error_t err; |