Changeset d132b92a in rtems


Ignore:
Timestamp:
May 27, 2010, 9:44:43 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
3c70bba
Parents:
dadbcba
Message:

2010-05-27 Ralf Corsépius <ralf.corsepius@…>

  • libfs/src/nfsclient/src/rpcio.c: Cast pointers to uintptr_t instead of long. xids are uint32_t not u_long.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rdadbcba rd132b92a  
    112010-05-27      Ralf Corsépius <ralf.corsepius@rtems.org>
    22
     3        * libfs/src/nfsclient/src/rpcio.c:
     4        Cast pointers to uintptr_t instead of long.
     5        xids are uint32_t not u_long.
    36        * libfs/src/nfsclient/src/nfs.c (NFS_MAKE_DEV_T_INO_HACK,
    47        NFS_MAKE_DEV_T): Cast "id"'s to rtems_device_minor_number.
  • cpukit/libfs/src/nfsclient/src/rpcio.c

    rdadbcba rd132b92a  
    289289
    290290typedef union  RpcBufU_ {
    291                 u_long                          xid;
     291                uint32_t                        xid;
    292292                char                            buf[1];
    293293} RpcBufU, *RpcBuf;
     
    688688                }
    689689                /* pick a free table slot and initialize the XID */
    690                 rval->obuf.xid = time(0) ^ (unsigned long)rval;
     690                rval->obuf.xid = time(0) ^ (uintptr_t)rval;
    691691                MU_LOCK(hlock);
    692                 rval->obuf.xid = (xidHashSeed++ ^ ((unsigned long)rval>>10)) & XACT_HASH_MSK;
     692                rval->obuf.xid = (xidHashSeed++ ^ ((uintptr_t)rval>>10)) & XACT_HASH_MSK;
    693693                i=j=(rval->obuf.xid & XACT_HASH_MSK);
    694694                if (msgQ) {
Note: See TracChangeset for help on using the changeset viewer.