summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libipulog_compat.c2
-rw-r--r--utils/ulog_test.c2
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);