Ignore:
Timestamp:
Dec 2, 2002, 7:13:26 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
36ea4c2a
Parents:
25f37e8
Message:

2002-12-02 Joel Sherrill <joel@…>

  • 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/sys/ioccom.h

    r25f37e8 r7e476f0  
    5656
    5757#define _IOC(inout,group,num,len) \
    58         (inout | ((len & IOCPARM_MASK) << 16) | ((group) << 8) | (num))
     58        ((unsigned32)inout | (unsigned32) ((unsigned32)((unsigned32)len & IOCPARM_MASK) << 16) | (unsigned32)((group) << 8) | (unsigned32)(num))
    5959#define _IO(g,n)        _IOC(IOC_VOID,  (g), (n), 0)
    6060#define _IOR(g,n,t)     _IOC(IOC_OUT,   (g), (n), sizeof(t))
Note: See TracChangeset for help on using the changeset viewer.