diff options
author | Roland McGrath <roland@gnu.org> | 1998-10-24 07:51:40 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1998-10-24 07:51:40 +0000 |
commit | 7493bdb9b7ab8f7f4f97e0a0b7dbf218a862e1bb (patch) | |
tree | 6f3d9bd428069827da31cd8d03851321fea433c4 /libdiskfs/dirremove.c | |
parent | 6875a586d28418b4ed203dc00cc8db3061f9a003 (diff) | |
download | hurd-7493bdb9b7ab8f7f4f97e0a0b7dbf218a862e1bb.tar.gz hurd-7493bdb9b7ab8f7f4f97e0a0b7dbf218a862e1bb.tar.bz2 hurd-7493bdb9b7ab8f7f4f97e0a0b7dbf218a862e1bb.zip |
1998-09-04 Roland McGrath <roland@baalperazim.frob.com>
* 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.
Diffstat (limited to 'libdiskfs/dirremove.c')
-rw-r--r-- | libdiskfs/dirremove.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/libdiskfs/dirremove.c b/libdiskfs/dirremove.c index 8970d19a..239daa72 100644 --- a/libdiskfs/dirremove.c +++ b/libdiskfs/dirremove.c @@ -1,5 +1,5 @@ /* Wrapper for diskfs_dirremove_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. @@ -27,20 +27,19 @@ call diskfs_notice_dirchange if DP->dirmod_reqs is nonzero. This function is a wrapper for diskfs_dirremove_hard. The entry being removed has name NAME and refers to NP. */ -error_t -diskfs_dirremove (struct node *dp, - struct node *np, - char *name, +error_t +diskfs_dirremove (struct node *dp, + struct node *np, + const char *name, struct dirstat *ds) { error_t err; - + diskfs_purge_lookup_cache (dp, np); - + err = diskfs_dirremove_hard (dp, ds); - + if (!err && dp->dirmod_reqs) diskfs_notice_dirchange (dp, DIR_CHANGED_UNLINK, name); return err; } - |