From d638b01e054dabce587a5ff9a846341b201458b8 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 10 Jun 2008 21:49:07 +0000 Subject: [doc/ChangeLog] 2008-06-10 Samuel Thibault * hurd.texi (Diskfs Callbacks): Add const qualifier to parameter `name' of function diskfs_lookup. [libdiskfs/ChangeLog] 2008-06-10 Samuel Thibault * dir-lookup.c (diskfs_lookup): Add const qualifier to parameter `name'. * dir-lookup.h (diskfs_lookup): Likewise. --- libdiskfs/ChangeLog | 6 ++++++ libdiskfs/diskfs.h | 2 +- libdiskfs/lookup.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) (limited to '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 + + * dir-lookup.c (diskfs_lookup): Add const qualifier to parameter + `name'. + * dir-lookup.h (diskfs_lookup): Likewise. + 2008-06-06 Samuel Thibault * 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; -- cgit v1.2.3