Some Apple code includes lines like:
mach_port_t masterPort = NULL;
When I compile this, I get a warning about converting a pointer to an integer
without a cast.
Sure enough, mach_port_t is an unsigned int. In fact, most of the things
used like this seem to be unsigned ints, which are only passed around as
cookies returned by mach calls.
So.
Why are they always initialized as though they were pointers?
-s
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden
This email sent to email@hidden