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/dir-chg.c | |
parent | 6875a586d28418b4ed203dc00cc8db3061f9a003 (diff) |
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/dir-chg.c')
-rw-r--r-- | libdiskfs/dir-chg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libdiskfs/dir-chg.c b/libdiskfs/dir-chg.c index 12b169c6..16eb26f4 100644 --- a/libdiskfs/dir-chg.c +++ b/libdiskfs/dir-chg.c @@ -1,5 +1,5 @@ /* Notifications of directory changes. - Copyright (C) 1994, 1995 Free Software Foundation, Inc. + Copyright (C) 1994, 1995, 1998 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -26,7 +26,7 @@ diskfs_S_dir_notice_changes (struct protid *cred, error_t err; struct modreq *req; struct node *np; - + if (!cred) return EOPNOTSUPP; @@ -53,11 +53,11 @@ diskfs_S_dir_notice_changes (struct protid *cred, void diskfs_notice_dirchange (struct node *dp, enum dir_changed_type type, - char *name) + const char *name) { error_t err; struct modreq **preq; - + preq = &dp->dirmod_reqs; while (*preq) { @@ -72,4 +72,4 @@ diskfs_notice_dirchange (struct node *dp, enum dir_changed_type type, else preq = &req->next; } -} +} |