From ace95ffa63f718c15a3ef362482c030e1f69186f Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sat, 26 Sep 2009 17:52:57 +0100 Subject: [PATCH] Remove warnings in the update client and server rx_Read and rx_Write take a datablock which is a char *, rather than a void *. Cast appropriately. Reviewed-on: http://gerrit.openafs.org/506 Tested-by: Derrick Brashear Reviewed-by: Derrick Brashear --- src/update/client.c | 2 +- src/update/server.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/update/client.c b/src/update/client.c index 362545a8a..333e1eb03 100644 --- a/src/update/client.c +++ b/src/update/client.c @@ -476,7 +476,7 @@ update_ReceiveFile(register int fd, register struct rx_call *call, register stru struct statfs tstatfs; #endif - len = rx_Read(call, &length, sizeof(afs_int32)); + len = rx_Read(call, (char *)&length, sizeof(afs_int32)); length = ntohl(length); if (len != sizeof(afs_int32)) return UPDATE_ERROR; diff --git a/src/update/server.c b/src/update/server.c index dca13f823..0650af977 100644 --- a/src/update/server.c +++ b/src/update/server.c @@ -434,7 +434,7 @@ update_SendFile(register int fd, register struct rx_call *call, register struct return UPDATE_ERROR; } tlen = htonl(length); - rx_Write(call, &tlen, sizeof(afs_int32)); /* send length on fetch */ + rx_Write(call, (char *)&tlen, sizeof(afs_int32)); /* send length on fetch */ while (!error && length) { register int nbytes = (length > blockSize ? blockSize : length); nbytes = read(fd, buffer, nbytes); -- 2.39.5