Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mach_port_t



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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.