From 87622285c39c00c78113c1338310c0841d646838 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 9 Nov 2010 22:39:31 +0100 Subject: src: remove redundant casts Signed-off-by: Jan Engelhardt --- src/libipulog_compat.c | 2 +- utils/ulog_test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libipulog_compat.c b/src/libipulog_compat.c index 9d93bcd..fbcf8e5 100644 --- a/src/libipulog_compat.c +++ b/src/libipulog_compat.c @@ -90,7 +90,7 @@ struct ipulog_handle *ipulog_create_handle(u_int32_t gmask, struct ipulog_handle *h; unsigned int group = gmask2group(gmask); - h = (struct ipulog_handle *) malloc(sizeof(*h)+PAYLOAD_SIZE); + h = malloc(sizeof(*h)+PAYLOAD_SIZE); if (! h) { ipulog_errno = IPULOG_ERR_HANDLE; return NULL; diff --git a/utils/ulog_test.c b/utils/ulog_test.c index 142846b..d568aa4 100644 --- a/utils/ulog_test.c +++ b/utils/ulog_test.c @@ -53,7 +53,7 @@ int main(int argc, char *argv[]) } /* allocate a receive buffer */ - buf = (unsigned char *) malloc(MYBUFSIZ); + buf = malloc(MYBUFSIZ); if (!buf) exit(1); -- cgit v1.2.3