[PATCH 2/3] src: remove redundant casts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>
---
 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 8c90cdb..a25cde9 100644
--- a/src/libipulog_compat.c
+++ b/src/libipulog_compat.c
@@ -91,7 +91,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);
 	
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux