Hi,

mmh, wait a second:

          const mach_msg_type_t inttype =
            { MACH_MSG_TYPE_INTEGER_T, sizeof (MACH_MSG_TYPE_INTEGER_T) * 8,
              1, 1, 0, 0 };

What is this "sizeof (MACH_MSG_TYPE_INTEGER_T)"?  MACH_MSG_TYPE_INTEGER_T is
just a macro defining a number:
#define       MACH_MSG_TYPE_INTEGER_T MACH_MSG_TYPE_INTEGER_32

It doesn't seem to make sense to use the sizeof operator on this value.

Is what you want here the size of the MACH_MSG_INTEGER_T type?  In this case
32/8 = 4, which matches sizeof(int)?

I don't think that this is the error condition here, but anyway.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org [EMAIL PROTECTED]
Marcus Brinkmann              GNU    http://www.gnu.org    [EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.marcus-brinkmann.de

_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to