summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-06-10 21:49:07 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2008-06-10 21:49:07 +0000
commitd638b01e054dabce587a5ff9a846341b201458b8 (patch)
tree850b7748a5ba2ffb20e4659abb3c4c3ecdf475e6 /libdiskfs
parentb8082aab5049f753abd720a5ef6a113e2acef911 (diff)
[doc/ChangeLog]
2008-06-10 Samuel Thibault <samuel.thibault@ens-lyon.org> * hurd.texi (Diskfs Callbacks): Add const qualifier to parameter `name' of function diskfs_lookup. [libdiskfs/ChangeLog] 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.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/ChangeLog6
-rw-r--r--libdiskfs/diskfs.h2
-rw-r--r--libdiskfs/lookup.c2
3 files changed, 8 insertions, 2 deletions
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;