From ecd48dd6ba534deea7fd4d0ce20c7b5c00f4128f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 8 Jun 2009 15:46:52 +0200 Subject: extensions: remove redundant casts Signed-off-by: Jan Engelhardt Signed-off-by: Patrick McHardy --- extensions/libipt_realm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/libipt_realm.c') diff --git a/extensions/libipt_realm.c b/extensions/libipt_realm.c index 0580610f..c9e17601 100644 --- a/extensions/libipt_realm.c +++ b/extensions/libipt_realm.c @@ -86,14 +86,14 @@ static void load_realms(void) continue; /* found valid data */ - newnm = (struct realmname*)malloc(sizeof(struct realmname)); + newnm = malloc(sizeof(struct realmname)); if (newnm == NULL) { perror("libipt_realm: malloc failed"); exit(1); } newnm->id = id; newnm->len = nxt - cur; - newnm->name = (char*)malloc(newnm->len + 1); + newnm->name = malloc(newnm->len + 1); if (newnm->name == NULL) { perror("libipt_realm: malloc failed"); exit(1); -- cgit v1.2.3