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/nfs.h | |
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/nfs.h')
-rw-r--r-- | nfs/nfs.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -162,14 +162,14 @@ extern int protocol_version; /* nfs.c */ int hurd_mode_to_nfs_type (mode_t); -int *xdr_encode_fhandle (int *, struct fhandle *); -int *xdr_encode_data (int *, char *, size_t); -int *xdr_encode_string (int *, char *); +int *xdr_encode_fhandle (int *, const struct fhandle *); +int *xdr_encode_data (int *, const char *, size_t); +int *xdr_encode_string (int *, const char *); int *xdr_encode_sattr_mode (int *, mode_t); int *xdr_encode_sattr_ids (int *, u_int, u_int); int *xdr_encode_sattr_size (int *, off_t); -int *xdr_encode_sattr_times (int *, struct timespec *, struct timespec *); -int *xdr_encode_sattr_stat (int *, struct stat *); +int *xdr_encode_sattr_times (int *, const struct timespec *, const struct timespec *); +int *xdr_encode_sattr_stat (int *, const struct stat *); int *xdr_encode_create_state (int *, mode_t, uid_t); int *xdr_decode_fattr (int *, struct stat *); int *xdr_decode_string (int *, char *); @@ -197,9 +197,9 @@ void lookup_fhandle (struct fhandle *, struct node **); int *recache_handle (int *, struct node *); /* name-cache.c */ -void enter_lookup_cache (char *, size_t, struct node *, char *); -void purge_lookup_cache (struct node *, char *, size_t); -struct node *check_lookup_cache (struct node *, char *); +void enter_lookup_cache (char *, size_t, struct node *, const char *); +void purge_lookup_cache (struct node *, const char *, size_t); +struct node *check_lookup_cache (struct node *, const char *); void purge_lookup_cache_node (struct node *); #endif /* NFS_NFS_H */ |