Changeset 7e9765d in rtems


Ignore:
Timestamp:
Jul 22, 2009, 3:21:13 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
17e3808
Parents:
f379d80
Message:

2009-07-22 Joel Sherrill <joel.sherrill@…>

  • psxsem01/init.c: Eliminate warning.
Location:
testsuites/psxtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    rf379d80 r7e9765d  
     12009-07-22      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * psxsem01/init.c: Eliminate warning.
     4
    152009-07-22      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • testsuites/psxtests/psxsem01/init.c

    rf379d80 r7e9765d  
    157157
    158158  puts( "Init: sem_open - UNSUCCESSFUL (ENAMETOOLONG)" );
    159   status = sem_open(Get_Too_Long_Name(), O_CREAT, 0777, 1 );
    160   fatal_posix_service_status( status, -1, "sem_open error return status");
     159  n_sem1 = sem_open(Get_Too_Long_Name(), O_CREAT, 0777, 1 );
     160  fatal_posix_service_status(
     161    (int) n_sem1, (int) SEM_FAILED, "sem_open error return status");
    161162  fatal_posix_service_status(
    162163    errno, ENAMETOOLONG, "sem_open errorno ENAMETOOLONG" );
     
    174175  n_sem2 = sem_open("sem1", O_CREAT | O_EXCL, 0777, 1);
    175176  fatal_posix_service_status(
    176     (int) n_sem2, (int ) SEM_FAILED, "sem_open error return status" );
     177    (int) n_sem2, (int) SEM_FAILED, "sem_open error return status" );
    177178  fatal_posix_service_status( errno, EEXIST,  "sem_open errno EEXIST");
    178179
     
    180181  n_sem2 = sem_open("sem3", O_EXCL, 0777, 1);
    181182  fatal_posix_service_status(
    182     (int) n_sem2, (int ) SEM_FAILED, "sem_open error return status" );
     183    (int) n_sem2, (int) SEM_FAILED, "sem_open error return status" );
    183184  fatal_posix_service_status( errno, ENOENT,  "sem_open errno EEXIST");
    184185
     
    205206  n_sem2 = sem_open("sem1", 0 );
    206207  fatal_posix_service_status(
    207     (int) n_sem2, (int ) n_sem1, "sem_open error return status" );
     208    (int) n_sem2, (int) n_sem1, "sem_open error return status" );
    208209
    209210  /*
Note: See TracChangeset for help on using the changeset viewer.