Changeset 11925eef in rtems for testsuites/psxtests/psxaio02


Ignore:
Timestamp:
Nov 21, 2014, 7:49:57 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
5dff7425
Parents:
db44590c
git-author:
Sebastian Huber <sebastian.huber@…> (11/21/14 07:49:57)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/21/14 07:52:29)
Message:

Delete or rename MIN/MAX macros and defines

Include <sys/param.h> if necessary to get the MIN()/MAX() macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxaio02/init.c

    rdb44590c r11925eef  
    3131
    3232#define BUFSIZE 32
    33 #define MAX 10
     33#define FD_COUNT 10
    3434#define WRONG_FD 666
    3535
     
    6060POSIX_Init (void *argument)
    6161{
    62   int fd[MAX];
    63   struct aiocb *aiocbp[MAX+1];
     62  int fd[FD_COUNT];
     63  struct aiocb *aiocbp[FD_COUNT+1];
    6464  int status, i, policy = SCHED_FIFO;
    6565  char filename[BUFSIZE];
     
    8080  puts ("Init: Open files");
    8181
    82   for (i=0; i<MAX; i++)
     82  for (i=0; i<FD_COUNT; i++)
    8383    {
    8484      sprintf (filename, "/tmp/aio_fildes%d",i);
     
    176176  TEST_END();
    177177
    178   for (i = 0; i < MAX; i++)
     178  for (i = 0; i < FD_COUNT; i++)
    179179    {
    180180      close (fd[i]);
Note: See TracChangeset for help on using the changeset viewer.