Update hurd/hurdselect.c to be more portable.
authorFlavio Cruz <flaviocruz@gmail.com>
Sat, 6 May 2023 20:55:10 +0000 (16:55 -0400)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 6 May 2023 21:10:55 +0000 (23:10 +0200)
commit84b4a81aebdb3a0dab335914ebb83faa67eb7df2
tree77a7824f7dcf9933d78df70b470ed41e0af3f748
parente64b7c26d45bc54130d9381711c592d85ff5db6a
Update hurd/hurdselect.c to be more portable.

Summary of changes:
- Use BAD_TYPECHECK to perform type checking in a cleaner way.
  BAD_TYPECHECK is moved into sysdeps/mach/rpc.h to avoid duplication.
- Remove assertions for mach_msg_type_t since those won't work for
  x86_64.
- Update message structs to use mach_msg_type_t directly.
- Use designated initializers.
Message-Id: <ZFa+roan3ioo0ONM@jupiter.tail36e24.ts.net>
hurd/hurdselect.c
hurd/intr-msg.c
sysdeps/mach/hurd/ioctl.c
sysdeps/mach/mach_rpc.h [new file with mode: 0644]