X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=blobdiff_plain;f=src%2Fcharon%2Fcontrol%2Finterfaces%2Fstroke_interface.c;h=e48ed261603cf9a7199a4f7a692d29446e95fa87;hp=d33cae8ed64466e3999c67f77843e8b31ab5c17a;hb=42577f4062fa583e34ace3f4d929fd456cc0d8b0;hpb=a84fb01b965831ee0b45f70aa44cb333c7d98473;ds=sidebyside diff --git a/src/charon/control/interfaces/stroke_interface.c b/src/charon/control/interfaces/stroke_interface.c index d33cae8..e48ed26 100755 --- a/src/charon/control/interfaces/stroke_interface.c +++ b/src/charon/control/interfaces/stroke_interface.c @@ -1579,7 +1579,7 @@ interface_t *interface_create() int i; /* public functions */ - this->public.interface.destroy = (void (*)(stroke_interface_t*))destroy; + this->public.interface.destroy = (void (*)(interface_t*))destroy; /* set up unix socket */ this->socket = socket(AF_UNIX, SOCK_STREAM, 0); @@ -1618,5 +1618,5 @@ interface_t *interface_create() } } - return (&this->public); + return (interface_t*)(&this->public); }