diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-17 00:32:29 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-17 00:43:09 +0100 |
commit | f5fb7c713ea443469406a691e60a6f4567a4cb75 (patch) | |
tree | b16d979915b5ad7e32ffe77ca5f5006dc639a16e /nfs/name-cache.c | |
parent | dd3048b2e483f66571cfa1b2ccebb2091b9ad990 (diff) | |
download | hurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.tar.gz hurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.tar.bz2 hurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.zip |
Fix const warnings
Now that the RPCs have const, this forces us cleaning our const-meant
functions.
Diffstat (limited to 'nfs/name-cache.c')
-rw-r--r-- | nfs/name-cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nfs/name-cache.c b/nfs/name-cache.c index 7553d7c0..73bcc071 100644 --- a/nfs/name-cache.c +++ b/nfs/name-cache.c @@ -107,7 +107,7 @@ find_cache (char *dir, size_t len, const char *name, size_t name_len) name has been confirmed as absent in the directory. DIR is the fhandle of the directory and LEN is its length. */ void -enter_lookup_cache (char *dir, size_t len, struct node *np, char *name) +enter_lookup_cache (char *dir, size_t len, struct node *np, const char *name) { struct lookup_cache *c; size_t name_len = strlen (name); @@ -146,7 +146,7 @@ enter_lookup_cache (char *dir, size_t len, struct node *np, char *name) /* Purge all references in the cache to NAME within directory DIR. */ void -purge_lookup_cache (struct node *dp, char *name, size_t namelen) +purge_lookup_cache (struct node *dp, const char *name, size_t namelen) { struct lookup_cache *c, *next; @@ -245,7 +245,7 @@ register_miss () unlock DIR->LOCK before returning. For positive hits, lock the returned node. */ struct node * -check_lookup_cache (struct node *dir, char *name) +check_lookup_cache (struct node *dir, const char *name) { struct lookup_cache *c; |