From: Jan Engelhardt <jengelh@medozas.de>
To: pablo@netfilter.org
Cc: netfilter-devel@vger.kernel.org
Subject: [PATCH 2/3] src: remove redundant casts
Date: Sat, 18 Dec 2010 21:17:31 +0100 [thread overview]
Message-ID: <1292703453-16324-3-git-send-email-jengelh@medozas.de> (raw)
In-Reply-To: <1292703453-16324-1-git-send-email-jengelh@medozas.de>
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
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
next prev parent reply other threads:[~2010-12-18 20:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-18 20:17 libnetfilter_log: misc annotations Jan Engelhardt
2010-12-18 20:17 ` [PATCH 1/3] libipulog: rebuild required header file inclusion Jan Engelhardt
2010-12-21 19:46 ` Pablo Neira Ayuso
2010-12-18 20:17 ` Jan Engelhardt [this message]
2010-12-21 19:56 ` [PATCH 2/3] src: remove redundant casts Pablo Neira Ayuso
2010-12-18 20:17 ` [PATCH 3/3] src: declare non-modified data as const Jan Engelhardt
2010-12-21 19:56 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1292703453-16324-3-git-send-email-jengelh@medozas.de \
--to=jengelh@medozas.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).