aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2022-12-06 00:33:41 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-06 21:27:53 +0100
commitc925ed9fd3bf4d4fb8a3e6306cda19040cd54627 (patch)
treebb974414bebe35c7dfa24e0396425d1fd5f3d19a /include
parent2a7263559572f178322451a6a1e0a43dc90cdb32 (diff)
downloadgnumach-c925ed9fd3bf4d4fb8a3e6306cda19040cd54627.tar.gz
gnumach-c925ed9fd3bf4d4fb8a3e6306cda19040cd54627.tar.bz2
gnumach-c925ed9fd3bf4d4fb8a3e6306cda19040cd54627.zip
Define vm_size_t and vm_offset_t as __mach_uintptr_t.
This allows *printf to use %zd/%zu/%zx to print vm_size_t and vm_offset_t. Warnings using the incorrect specifiers were fixed. Note that MACH_PORT_NULL became just 0 because GCC thinks that we were comparing a pointer to a character (due to it being an unsigned int) so I removed the explicit cast. Message-Id: <Y47UNdcUF35Ag4Vw@reue>
Diffstat (limited to 'include')
-rw-r--r--include/mach/port.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mach/port.h b/include/mach/port.h
index caa6b713..e38be614 100644
--- a/include/mach/port.h
+++ b/include/mach/port.h
@@ -70,7 +70,7 @@ typedef int *rpc_signature_info_t;
* that a port right was present, but it died.
*/
-#define MACH_PORT_NULL ((mach_port_t) 0)
+#define MACH_PORT_NULL 0 /* works with both user and kernel ports */
#define MACH_PORT_DEAD ((mach_port_t) ~0)
#define MACH_PORT_VALID(name) \