(mface_put_prop): Likewise.
{
if (key == Mhook_func)
/* This unsafe code is for backward compatiblity. */
- return *(void **) &face->hook;
+ return (void *) face->hook;
MERROR (MERROR_FACE, NULL);
}
return face->property[index];
if (key == Mhook_func)
{
/* This unsafe code is for backward compatiblity. */
- if (*(void **) &face->hook == val)
+ if (face->hook == (MFaceHookFunc) val)
return 0;
- *(void **) &face->hook = val;
+ face->hook = (MFaceHookFunc) val;
}
else
{