diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-05-02 00:11:22 -0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-02 07:47:15 +0200 |
commit | 0be50de40ee012223eba38e76f19ed08f5429f51 (patch) | |
tree | 0dbcb5ec4511e2f6cfb5f7772c5520bbda440fa3 /libports | |
parent | 0afac7ab288a2a259bbc6bdb7e20b686b3913274 (diff) | |
download | hurd-0be50de40ee012223eba38e76f19ed08f5429f51.tar.gz hurd-0be50de40ee012223eba38e76f19ed08f5429f51.tar.bz2 hurd-0be50de40ee012223eba38e76f19ed08f5429f51.zip |
Use uintptr_t for message payloads.
A follow up to 92fad38a043b75ed6b435b3efa574ede91dbe9ee in gnumach.
Message-Id: <ZFCNasf9bJ9qj+CG@jupiter.tail36e24.ts.net>
Diffstat (limited to 'libports')
-rw-r--r-- | libports/mig-decls.h | 2 | ||||
-rw-r--r-- | libports/ports.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libports/mig-decls.h b/libports/mig-decls.h index c88ff261..4316e07c 100644 --- a/libports/mig-decls.h +++ b/libports/mig-decls.h @@ -31,7 +31,7 @@ begin_using_port_info_port (mach_port_t port) } static inline struct port_info * __attribute__ ((unused)) -begin_using_port_info_payload (unsigned long payload) +begin_using_port_info_payload (uintptr_t payload) { return ports_lookup_payload (0, payload, 0); } diff --git a/libports/ports.h b/libports/ports.h index c0f0a22a..e84ee333 100644 --- a/libports/ports.h +++ b/libports/ports.h @@ -253,20 +253,20 @@ void *ports_lookup_port (struct port_bucket *bucket, this function is used, PAYLOAD must be a pointer to the port structure. */ extern void *ports_lookup_payload (struct port_bucket *bucket, - unsigned long payload, + uintptr_t payload, struct port_class *port_class); /* This returns the ports name. This function can be used as intranpayload function turning payloads back into port names. If this function is used, PAYLOAD must be a pointer to the port structure. */ -extern mach_port_t ports_payload_get_name (unsigned int payload); +extern mach_port_t ports_payload_get_name (uintptr_t payload); #if (defined(__USE_EXTERN_INLINES) || defined(PORTS_DEFINE_EI)) && !defined(__cplusplus) PORTS_EI void * ports_lookup_payload (struct port_bucket *bucket, - unsigned long payload, + uintptr_t payload, struct port_class *class) { struct port_info *pi = (struct port_info *) payload; @@ -287,7 +287,7 @@ ports_lookup_payload (struct port_bucket *bucket, } PORTS_EI mach_port_t -ports_payload_get_name (unsigned int payload) +ports_payload_get_name (uintptr_t payload) { struct port_info *pi = (struct port_info *) payload; |