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/dir-chg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libdiskfs/dir-chg.c') 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; } -} +} -- cgit v1.2.3