summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2025-07-01 00:52:30 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-07-01 00:52:53 +0200
commit60cdb084e299260280ed30e66b73f518a7b4e32e (patch)
treeed2f01c61173354dd3b3574eade14480ca50bf00
parentd2eb87c0674a281d1d3854b9c4fba0b7df215077 (diff)
console: Fix hardcoded message sizes for 64b case
-rw-r--r--console/display.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/console/display.c b/console/display.c
index 76a0f735..3f917d71 100644
--- a/console/display.c
+++ b/console/display.c
@@ -215,8 +215,14 @@ nowait_file_changed (mach_port_t notify_port, natural_t tickno,
mach_msg_header_t Head;
mach_msg_type_t ticknoType;
natural_t tickno;
+#ifdef __LP64__
+ char ticknoPad[4];
+#endif
mach_msg_type_t changeType;
file_changed_type_t change;
+#ifdef __LP64__
+ char changePad[4];
+#endif
mach_msg_type_t startType;
loff_t start;
mach_msg_type_t endType;
@@ -286,11 +292,11 @@ nowait_file_changed (mach_port_t notify_port, natural_t tickno,
if (notify == MACH_PORT_NULL)
return mach_msg (&InP->Head, MACH_SEND_MSG | MACH_MSG_OPTION_NONE,
- 64, 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE,
+ sizeof(Request), 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE,
MACH_PORT_NULL);
else
return mach_msg (&InP->Head, MACH_SEND_MSG | MACH_SEND_NOTIFY,
- 64, 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE,
+ sizeof(Request), 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE,
notify);
}