summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_realm.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-06-08 15:46:52 +0200
committerPatrick McHardy <kaber@trash.net>2009-06-08 15:46:52 +0200
commitecd48dd6ba534deea7fd4d0ce20c7b5c00f4128f (patch)
tree2a741a205c593a4b943f31b433c6ef27c7224f3d /extensions/libipt_realm.c
parent6d7d91e86729e3b2bcca6821409e8d78e83430e7 (diff)
extensions: remove redundant casts
Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'extensions/libipt_realm.c')
-rw-r--r--extensions/libipt_realm.c4
1 files changed, 2 insertions, 2 deletions
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);