From 7493bdb9b7ab8f7f4f97e0a0b7dbf218a862e1bb Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 24 Oct 1998 07:51:40 +0000 Subject: 1998-09-04 Roland McGrath * diskfs.h (diskfs_lookup_hard, diskfs_lookup, diskfs_set_translator, diskfs_create_symlink_hook, diskfs_notice_dirchange, diskfs_direnter, diskfs_direnter_hard, diskfs_dirrewrite, diskfs_dirremove, diskfs_create_node, diskfs_enter_lookup_cache, diskfs_check_lookup_cache, dir_rename_dir, diskfs_set_options): Add `const' qualifier to `char *' parameters where appropriate. * opts-set.c (diskfs_set_options): Fix defn with `const'. * node-create.c (diskfs_create_node): Likewise. * name-cache.c (diskfs_enter_lookup_cache): Likewise. (diskfs_check_lookup_cache): Likewise. * dirremove.c (diskfs_dirremove): Likewise. * dirrewrite.c (diskfs_dirrewrite): Likewise. * lookup.c (diskfs_lookup): Likewise. * direnter.c (diskfs_direnter): Likewise. * dir-renamed.c (diskfs_rename_dir): Likewise. * dir-chg.c (diskfs_notice_dirchange): Likewise. --- libdiskfs/direnter.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libdiskfs/direnter.c') diff --git a/libdiskfs/direnter.c b/libdiskfs/direnter.c index ca0006eb..cb9b76ca 100644 --- a/libdiskfs/direnter.c +++ b/libdiskfs/direnter.c @@ -1,5 +1,5 @@ /* Wrapper for diskfs_direnter_hard - Copyright (C) 1996 Free Software Foundation, Inc. + Copyright (C) 1996, 1998 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -29,13 +29,13 @@ growth). This function is a wrapper for diskfs_direnter_hard. */ error_t diskfs_direnter (struct node *dp, - char *name, + const char *name, struct node *np, struct dirstat *ds, struct protid *cred) { error_t err; - + err = diskfs_direnter_hard (dp, name, np, ds, cred); if (err) return err; @@ -45,5 +45,4 @@ diskfs_direnter (struct node *dp, diskfs_enter_lookup_cache (dp, np, name); return 0; -} - +} -- cgit v1.2.3