aboutsummaryrefslogtreecommitdiff
path: root/nfs/nfs.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-17 00:32:29 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-17 00:43:09 +0100
commitf5fb7c713ea443469406a691e60a6f4567a4cb75 (patch)
treeb16d979915b5ad7e32ffe77ca5f5006dc639a16e /nfs/nfs.c
parentdd3048b2e483f66571cfa1b2ccebb2091b9ad990 (diff)
downloadhurd-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.c')
-rw-r--r--nfs/nfs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nfs/nfs.c b/nfs/nfs.c
index d124cae7..a5ea53d2 100644
--- a/nfs/nfs.c
+++ b/nfs/nfs.c
@@ -140,7 +140,7 @@ hurd_mode_to_nfs_type (mode_t mode)
/* Encode an NFS file handle. */
int *
-xdr_encode_fhandle (int *p, struct fhandle *fhandle)
+xdr_encode_fhandle (int *p, const struct fhandle *fhandle)
{
if (protocol_version == 2)
{
@@ -153,7 +153,7 @@ xdr_encode_fhandle (int *p, struct fhandle *fhandle)
/* Encode uninterpreted bytes. */
int *
-xdr_encode_data (int *p, char *data, size_t len)
+xdr_encode_data (int *p, const char *data, size_t len)
{
int nints = INTSIZE (len);
@@ -174,7 +174,7 @@ xdr_encode_64bit (int *p, long long n)
/* Encode a C string. */
int *
-xdr_encode_string (int *p, char *string)
+xdr_encode_string (int *p, const char *string)
{
return xdr_encode_data (p, string, strlen (string));
}
@@ -266,7 +266,7 @@ xdr_encode_sattr_size (int *p, off_t size)
/* Encode ATIME and MTIME into an otherwise empty sattr. */
int *
-xdr_encode_sattr_times (int *p, struct timespec *atime, struct timespec *mtime)
+xdr_encode_sattr_times (int *p, const struct timespec *atime, const struct timespec *mtime)
{
if (protocol_version == 2)
{
@@ -357,7 +357,7 @@ xdr_encode_create_state (int *p,
/* Encode ST into an sattr. */
int *
xdr_encode_sattr_stat (int *p,
- struct stat *st)
+ const struct stat *st)
{
if (protocol_version == 2)
{