remove casts from xmalloc()

This commit is contained in:
Denis Vlasenko
2006-12-19 23:36:04 +00:00
parent 2375d75f32
commit b95636c52f
15 changed files with 25 additions and 27 deletions

View File

@@ -117,7 +117,7 @@ int logread_main(int argc, char **argv)
log_len = buf->tail - i;
if (log_len < 0)
log_len += buf->size;
buf_data = (char *)xmalloc(log_len);
buf_data = xmalloc(log_len);
if (buf->tail < i) {
memcpy(buf_data, buf->data+i, buf->size-i);