Changeset 2ad5753 in rtems


Ignore:
Timestamp:
May 22, 2010, 4:48:41 PM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
f22c154
Parents:
eb5cd5b
Message:

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

  • libmisc/shell/fts.c: Cast to uintptr_t instead of long for better 16bit target compliance.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    reb5cd5b r2ad5753  
    112010-05-22      Ralf Corsépius <ralf.corsepius@rtems.org>
    22
     3        * libmisc/shell/fts.c: Cast to uintptr_t instead of long for better
     4        16bit target compliance.
     5
     62010-05-22      Ralf Corsépius <ralf.corsepius@rtems.org>
    37        * libfs/src/rfs/rtems-rfs-bitmaps-ut.c: Use "16 bit int" arg
    48        in call to srand if "32 bit int" doesn't fit into "int".
  • cpukit/libmisc/shell/fts.c

    reb5cd5b r2ad5753  
    6060#include <fts.h>
    6161#include <stdlib.h>
     62#include <stdint.h>
    6263#include <string.h>
    6364#include <unistd.h>
     
    10561057        if (!ISSET(FTS_NOSTAT))
    10571058                p->fts_statp = (__fts_stat_t *)ALIGN(
    1058                     (unsigned long)(p->fts_name + namelen + 2));
     1059                    (uintptr_t)(p->fts_name + namelen + 2));
    10591060#else
    10601061        if ((p = malloc(sizeof(FTSENT) + namelen)) == NULL)
Note: See TracChangeset for help on using the changeset viewer.