mach_port_t
mach_port_t
- Subject: mach_port_t
- From: email@hidden (Peter Seebach)
- Date: Mon, 01 Aug 2005 10:01:44 -0500
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:
This email sent to email@hidden