Changeset b9f0c834 in rtems


Ignore:
Timestamp:
Jun 12, 2003, 3:41:27 PM (16 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
a7a950d7
Parents:
2ec764f
Message:

2003-06-12 Joel Sherrill <joel@…>

  • psxchroot01/test.c, psxreaddir/test.c: Removed warnings.
Location:
c/src/tests/psxtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/psxchroot01/test.c

    r2ec764f rb9f0c834  
    2929#include <errno.h>
    3030#include <rtems/libio.h>
     31#include <rtems/userenv.h>
    3132#include <pmacros.h>
    3233
  • c/src/tests/psxtests/psxreaddir/test.c

    r2ec764f rb9f0c834  
    4141#endif
    4242
     43/*
    4344int scandir ( const char *dirname,
    4445   struct dirent *** namelist,
    4546   int (*select) __P((struct dirent *)),
    46    int (*dcomp) __P((const void *, const void *))
     47   int (*dcomp) __P((const struct dirent **, const struct dirent **))
    4748);
     49*/
    4850
    4951#if defined(__rtems__)
     
    169171
    170172
    171 int compare_descending( struct dirent **a, struct dirent **b )
     173int compare_descending( const struct dirent **a, const struct dirent **b )
    172174{
    173175   int i;
    174176
    175177   i = strcmp (
    176       (char *)((struct dirent *)(*b)->d_name),
    177       (char *)((struct dirent *)(*a)->d_name)
     178      (char *)((const struct dirent *)(*b)->d_name),
     179      (char *)((const struct dirent *)(*a)->d_name)
    178180   );
    179181
Note: See TracChangeset for help on using the changeset viewer.