summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-07-25 23:36:17 +0200
committerJan Engelhardt <jengelh@medozas.de>2010-08-03 19:56:11 +0200
commit371cea299f0b2eb100b9fc9fb99089640d2d606f (patch)
tree6ecdc6baeda0a48f7f976025b8609a9e49331e64
parenta653f2936c56bfc541f13a7888484d5ae21c057a (diff)
xtables: remove unnecessary cast
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r--xtables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xtables.c b/xtables.c
index ed082f3f..47a0d9cb 100644
--- a/xtables.c
+++ b/xtables.c
@@ -285,7 +285,7 @@ static char *get_modprobe(void)
if (procfile < 0)
return NULL;
- ret = (char *) malloc(PROCFILE_BUFSIZ);
+ ret = malloc(PROCFILE_BUFSIZ);
if (ret) {
memset(ret, 0, PROCFILE_BUFSIZ);
switch (read(procfile, ret, PROCFILE_BUFSIZ)) {