Code

openvpn plugin: remove unnecessary cast
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 09:30:19 +0000 (11:30 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 09:30:19 +0000 (11:30 +0200)
src/openvpn.c

index ec76a7aa66b5f69f749c6add9adfd15adf8187be..f10b1746c18b3a7d39bb145dac8caa76aacd5846 100644 (file)
@@ -712,7 +712,7 @@ static int openvpn_config (const char *key, const char *value)
                temp->version = status_version;
                temp->name = status_name;
 
-               vpn_list = (vpn_status_t **) realloc (vpn_list, (vpn_num + 1) * sizeof (vpn_status_t *));
+               vpn_list = realloc (vpn_list, (vpn_num + 1) * sizeof (vpn_status_t *));
                if (vpn_list == NULL)
                {
                        char errbuf[1024];