Wrong typecast in GetApplicationAttrs() autodoc?
Posted: Sun Jan 27, 2013 12:11 pm
I see that the autodoc for GetApplicationAttrs() / GetApplicationAttrsA() contains the following example code:
But surely the typecast is wrong? Assuming that the function uses the same type of storage as Intuition's GetAttrs(), I guess the line should read:
if (GetApplicationAttrs(appID, APPATTR_Port, (uint32 *)&port, TAG_DONE))
Code: Select all
struct MsgPort *port;
if (GetApplicationAttrs(appID, APPATTR_Port, (uint32)&port, TAG_DONE))
{
... receive messages ...
}
if (GetApplicationAttrs(appID, APPATTR_Port, (uint32 *)&port, TAG_DONE))