update: Don't cast returns from malloc()
[openafs.git] / src / update / server.c
index e91a470..37d79b9 100644 (file)
@@ -400,7 +400,7 @@ update_SendFile(int fd, struct rx_call *call, struct stat *status)
     blockSize = status->st_blksize;
 #endif
     length = status->st_size;
-    buffer = (char *)malloc(blockSize);
+    buffer = malloc(blockSize);
     if (!buffer) {
        printf("malloc failed\n");
        return UPDATE_ERROR;