From 06d7d664b3c66b0444a76a0b56b50b8e1aeaa84c Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Thu, 19 Dec 2002 02:52:23 +0000 Subject: [PATCH] Spell `unsigned short' in a way which does not depend on namespace pollution. Note that this is still the wrong type, but we are not ready to break the ABI; this change simply allows programs which specify a strict SUSv3 namespace to compile. (They may still have semantic errors, since SUSv3 specifies correct types.) --- sys/sys/ipc.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/sys/ipc.h b/sys/sys/ipc.h index 9a094f159b98..e78082a61c27 100644 --- a/sys/sys/ipc.h +++ b/sys/sys/ipc.h @@ -77,13 +77,13 @@ typedef __uid_t uid_t; * XXX almost all members have wrong types. */ struct ipc_perm { - ushort cuid; /* creator user id */ - ushort cgid; /* creator group id */ - ushort uid; /* user id */ - ushort gid; /* group id */ - ushort mode; /* r/w permission */ - ushort seq; /* sequence # (to generate unique msg/sem/shm id) */ - key_t key; /* user specified msg/sem/shm key */ + unsigned short cuid; /* creator user id */ + unsigned short cgid; /* creator group id */ + unsigned short uid; /* user id */ + unsigned short gid; /* group id */ + unsigned short mode; /* r/w permission */ + unsigned short seq; /* sequence # (to generate unique ipcid) */ + key_t key; /* user specified msg/sem/shm key */ }; #if __BSD_VISIBLE