diff --git a/src/update/client.c b/src/update/client.c index a5f00247c3..5bf827bdc3 100644 --- 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; diff --git a/src/update/server.c b/src/update/server.c index e91a4706cd..37d79b9b77 100644 --- a/src/update/server.c +++ b/src/update/server.c @@ -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; diff --git a/src/update/utils.c b/src/update/utils.c index ef2712f0f6..1d5dc6a072 100644 --- a/src/update/utils.c +++ b/src/update/utils.c @@ -27,7 +27,7 @@ int AddToList(struct filestr **ah, char *aname) { struct filestr *tf; - tf = (struct filestr *)malloc(sizeof(struct filestr)); + tf = malloc(sizeof(struct filestr)); tf->next = *ah; *ah = tf; tf->name = strdup(aname);