]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables: remove unnecessary cast
authorJan Engelhardt <jengelh@medozas.de>
Sun, 25 Jul 2010 21:36:17 +0000 (23:36 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Tue, 3 Aug 2010 17:56:11 +0000 (19:56 +0200)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
xtables.c

index ed082f3fb452e9c92dee66cd4f74d6a4bc15d386..47a0d9cbfbe91772fabf2f7386dfd30d181c1484 100644 (file)
--- 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)) {