diff options
author | Chris Johns <chrisj@rtems.org> | 2010-04-12 05:29:25 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2010-04-12 05:29:25 +0000 |
commit | 1d539c05010b34013e49c5a8221702ebadae4406 (patch) | |
tree | 3fc3d5bdd8435cd565c336ba0aab2525e518af1d /cpukit/libfs/src/rfs/rtems-rfs-buffer.c | |
parent | 2010-04-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-1d539c05010b34013e49c5a8221702ebadae4406.tar.bz2 |
2010-04-12 Chris Johns <chrisj@rtems.org>
libfs/src/rfs/rtems-rfs-buffer-bdbuf.c,
libfs/src/rfs/rtems-rfs-buffer.c, libfs/src/rfs/rtems-rfs-data.h,
libfs/src/rfs/rtems-rfs-dir.c,
libfs/src/rfs/rtems-rfs-file-system.c,
libfs/src/rfs/rtems-rfs-format.c, libfs/src/rfs/rtems-rfs-inode.h,
libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs-rtems.h,
libfs/src/rfs/rtems-rfs-shell.c: Fix for PR1502. Clean up problems
on 16bit targets.
Diffstat (limited to 'cpukit/libfs/src/rfs/rtems-rfs-buffer.c')
-rw-r--r-- | cpukit/libfs/src/rfs/rtems-rfs-buffer.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-buffer.c b/cpukit/libfs/src/rfs/rtems-rfs-buffer.c index bc73c57f1c..eb83f4fbea 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-buffer.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-buffer.c @@ -51,12 +51,13 @@ rtems_rfs_scan_chain (rtems_chain_control* chain, buffer = (rtems_rfs_buffer*) node; if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS)) - printf ("%lu ", (rtems_rfs_buffer_block) buffer->user); + printf ("%lu ", (rtems_rfs_buffer_block) ((intptr_t)(buffer->user))); - if (((rtems_rfs_buffer_block) buffer->user) == block) + if (((rtems_rfs_buffer_block) ((intptr_t)(buffer->user))) == block) { if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS)) - printf (": found block=%lu\n", (rtems_rfs_buffer_block) buffer->user); + printf (": found block=%lu\n", + (rtems_rfs_buffer_block) ((intptr_t)(buffer->user))); (*count)--; rtems_chain_extract (node); @@ -182,7 +183,7 @@ rtems_rfs_buffer_handle_request (rtems_rfs_file_system* fs, rtems_chain_append (&fs->buffers, rtems_rfs_buffer_link (handle)); fs->buffers_count++; - handle->buffer->user = (void*) block; + handle->buffer->user = (void*) ((intptr_t) block); handle->bnum = block; if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST)) |