Changeset a978589 in rtems


Ignore:
Timestamp:
Jun 12, 2003, 3:41:19 PM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
9eb574dd
Parents:
e99ff42
Message:

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

  • psxchroot01/test.c, psxreaddir/test.c: Removed warnings.
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/ChangeLog

    re99ff42 ra978589  
     12003-06-12      Joel Sherrill <joel@OARcorp.com>
     2
     3        * psxchroot01/test.c, psxreaddir/test.c: Removed warnings.
     4
    152003-05-29      Joel Sherrill <joel@OARcorp.com>
    26
  • c/src/tests/psxtests/psxchroot01/test.c

    re99ff42 ra978589  
    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

    re99ff42 ra978589  
    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
  • testsuites/psxtests/ChangeLog

    re99ff42 ra978589  
     12003-06-12      Joel Sherrill <joel@OARcorp.com>
     2
     3        * psxchroot01/test.c, psxreaddir/test.c: Removed warnings.
     4
    152003-05-29      Joel Sherrill <joel@OARcorp.com>
    26
  • testsuites/psxtests/psxchroot01/test.c

    re99ff42 ra978589  
    2929#include <errno.h>
    3030#include <rtems/libio.h>
     31#include <rtems/userenv.h>
    3132#include <pmacros.h>
    3233
  • testsuites/psxtests/psxreaddir/test.c

    re99ff42 ra978589  
    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.