summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/include/sys/ioccom.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-12-02 19:13:26 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-12-02 19:13:26 +0000
commit7e476f027955dd3b5aafb782c1c7f821925a2d47 (patch)
tree9d04c1f460376dd85635727c4bb73917dbaf60b4 /cpukit/libcsupport/include/sys/ioccom.h
parent2002-12-02 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-7e476f027955dd3b5aafb782c1c7f821925a2d47.tar.bz2
2002-12-02 Joel Sherrill <joel@OARcorp.com>
* include/rtems/libio.h: Internally use a union of an unsigned64 and major/minor device so we don't get into trouble shifting. The h8300 seemed to be impossible to remove warnings otherwise. Eventually the structure definition of a dev_t might be better anyway. * include/sys/ioccom.h: Added casts to remove warnings on 16 bit targets.
Diffstat (limited to '')
-rw-r--r--cpukit/libcsupport/include/sys/ioccom.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libcsupport/include/sys/ioccom.h b/cpukit/libcsupport/include/sys/ioccom.h
index 60e16a6c8a..ed73439f3f 100644
--- a/cpukit/libcsupport/include/sys/ioccom.h
+++ b/cpukit/libcsupport/include/sys/ioccom.h
@@ -55,7 +55,7 @@
#define IOC_DIRMASK 0xe0000000 /* mask for IN/OUT/VOID */
#define _IOC(inout,group,num,len) \
- (inout | ((len & IOCPARM_MASK) << 16) | ((group) << 8) | (num))
+ ((unsigned32)inout | (unsigned32) ((unsigned32)((unsigned32)len & IOCPARM_MASK) << 16) | (unsigned32)((group) << 8) | (unsigned32)(num))
#define _IO(g,n) _IOC(IOC_VOID, (g), (n), 0)
#define _IOR(g,n,t) _IOC(IOC_OUT, (g), (n), sizeof(t))
#define _IOW(g,n,t) _IOC(IOC_IN, (g), (n), sizeof(t))