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);
}
}
- return (&this->public);
+ return (interface_t*)(&this->public);
}