diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-11-09 22:39:31 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-12-21 20:54:32 +0100 |
commit | 87622285c39c00c78113c1338310c0841d646838 (patch) | |
tree | 2c86ecbfb4cd8a8cd3aa86373390b2bc93ce4a96 | |
parent | f4def3676c707e119c26457c4df176dbf54cedab (diff) |
src: remove redundant casts
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r-- | src/libipulog_compat.c | 2 | ||||
-rw-r--r-- | 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); |