aboutsummaryrefslogtreecommitdiff
path: root/ipc/port.h
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2022-12-01 00:42:57 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-03 02:42:49 +0100
commit9518a5e29e6774fb66821140c916522abb985eaf (patch)
treecb93c90e2dd5ecd8af99700c7a001fab908bb190 /ipc/port.h
parent958686efa2175abe3f7044890c2c2370e29147f2 (diff)
downloadgnumach-9518a5e29e6774fb66821140c916522abb985eaf.tar.gz
gnumach-9518a5e29e6774fb66821140c916522abb985eaf.tar.bz2
gnumach-9518a5e29e6774fb66821140c916522abb985eaf.zip
Use mach_port_name_t in a few more places
A few places that I missed in 958686efa2175abe3f7044890c2c2370e29147f2. Message-Id: <Y4g+4THLC/1NvnkM@viriathus>
Diffstat (limited to 'ipc/port.h')
-rw-r--r--ipc/port.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/ipc/port.h b/ipc/port.h
index 49af6e2c..9ef586c1 100644
--- a/ipc/port.h
+++ b/ipc/port.h
@@ -42,10 +42,10 @@
#include <mach/port.h>
/*
- * mach_port_t must be an unsigned type. Port values
+ * mach_port_name_t must be an unsigned type. Port values
* have two parts, a generation number and an index.
* These macros encapsulate all knowledge of how
- * a mach_port_t is laid out.
+ * a mach_port_name_t is laid out.
*
* If the size of generation numbers changes,
* be sure to update IE_BITS_GEN_MASK and friends
@@ -67,11 +67,10 @@
/*
* Typedefs for code cleanliness. These must all have
- * the same (unsigned) type as mach_port_t.
+ * the same (unsigned) type as mach_port_name_t.
*/
-typedef mach_port_t mach_port_index_t; /* index values */
-typedef mach_port_t mach_port_gen_t; /* generation numbers */
+typedef mach_port_name_t mach_port_gen_t; /* generation numbers */
#define MACH_PORT_UREFS_MAX ((mach_port_urefs_t) ((1 << 16) - 1))