} else
#endif
len = strlen((const char *)path);
- state->path = (char *)malloc(len + 1);
+ state->path = malloc(len + 1);
if (state->path == NULL) {
gz_state_free(state);
return NULL;
return;
/* construct error message with path */
- if ((state->msg = (char *)malloc(strlen(state->path) + strlen(msg) + 3)) == NULL) {
+ if ((state->msg = malloc(strlen(state->path) + strlen(msg) + 3)) == NULL) {
state->err = Z_MEM_ERROR;
return;
}
// Zlib-ng's default alloc/free implementation, used unless
// application supplies its own alloc/free functions.
static inline void *zng_alloc(size_t size) {
- return (void *)malloc(size);
+ return malloc(size);
}
static inline void zng_free(void *ptr) {