git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
update: Don't cast returns from malloc()
[openafs.git]
/
src
/
update
/
client.c
diff --git
a/src/update/client.c
b/src/update/client.c
index
a5f0024
..
5bf827b
100644
(file)
--- a/
src/update/client.c
+++ b/
src/update/client.c
@@
-472,7
+472,7
@@
update_ReceiveFile(int fd, struct rx_call *call, struct stat *status)
#else
blockSize = status->st_blksize;
#endif
- buffer = (char *)malloc(blockSize);
+ buffer = malloc(blockSize);
if (!buffer) {
printf("malloc failed\n");
return UPDATE_ERROR;