From: Simon Wilkinson Date: Sat, 26 Sep 2009 16:52:57 +0000 (+0100) Subject: Remove warnings in the update client and server X-Git-Tag: openafs-devel-1_5_65~39 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=ace95ffa63f718c15a3ef362482c030e1f69186f;hp=fabe41d6443586778cd992ad0aa8fad41b130114 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 --- diff --git a/src/update/client.c b/src/update/client.c index 362545a..333e1eb 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 dca13f8..0650af9 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);