forked from Imagelibrary/rtems
psxhdrs: Align the code properly to left hand margin
This commit is contained in:
committed by
Joel Sherrill
parent
7fe5922a5f
commit
e15ae5a3a1
@@ -30,20 +30,13 @@
|
||||
|
||||
int test( void );
|
||||
|
||||
int pass = 1;
|
||||
|
||||
int test( void )
|
||||
{
|
||||
int fd;
|
||||
DIR *result;
|
||||
|
||||
if( pass == 1 )
|
||||
{
|
||||
fd = open( "./", O_RDONLY );
|
||||
result = fdopendir( fd );
|
||||
(void) result;
|
||||
pass = 0;
|
||||
}
|
||||
|
||||
return pass;
|
||||
return ( result != NULL );
|
||||
}
|
||||
|
||||
@@ -27,18 +27,11 @@
|
||||
|
||||
int test( void );
|
||||
|
||||
int result = 1;
|
||||
|
||||
int test( void )
|
||||
{
|
||||
DIR *dir;
|
||||
|
||||
if( result == 1 )
|
||||
{
|
||||
dir = opendir( "/" );
|
||||
(void) dir;
|
||||
result = 0;
|
||||
}
|
||||
|
||||
return result;
|
||||
return ( dir != NULL );
|
||||
}
|
||||
|
||||
@@ -26,20 +26,14 @@
|
||||
#include <dirent.h>
|
||||
|
||||
int test( void );
|
||||
int pass = 1;
|
||||
|
||||
int test( void )
|
||||
{
|
||||
DIR *dirp;
|
||||
struct dirent *result;
|
||||
|
||||
if( pass == 1 )
|
||||
{
|
||||
dirp = opendir( "/" );
|
||||
result = readdir( dirp );
|
||||
(void) result;
|
||||
pass = 0;
|
||||
}
|
||||
|
||||
return pass;
|
||||
return ( result != NULL );
|
||||
}
|
||||
|
||||
@@ -26,18 +26,13 @@
|
||||
#include <dirent.h>
|
||||
|
||||
int test( void );
|
||||
int result = 1;
|
||||
|
||||
int test( void )
|
||||
{
|
||||
DIR *dirp;
|
||||
|
||||
if( result == 1 )
|
||||
{
|
||||
dirp = opendir( "/" );
|
||||
rewinddir( dirp );
|
||||
result = 0;
|
||||
}
|
||||
|
||||
return result;
|
||||
return ( dirp != NULL );
|
||||
}
|
||||
|
||||
@@ -26,20 +26,15 @@
|
||||
#include <dirent.h>
|
||||
|
||||
int test( void );
|
||||
int result = 1;
|
||||
|
||||
int test( void )
|
||||
{
|
||||
DIR *dirp;
|
||||
long loc;
|
||||
|
||||
if( result == 1 )
|
||||
{
|
||||
dirp = opendir( "/" );
|
||||
loc = telldir( dirp );
|
||||
seekdir( dirp, loc );
|
||||
result = 0;
|
||||
}
|
||||
|
||||
return result;
|
||||
return ( (int)loc );
|
||||
}
|
||||
|
||||
@@ -26,20 +26,14 @@
|
||||
#include <dirent.h>
|
||||
|
||||
int test( void );
|
||||
int result = 1;
|
||||
|
||||
int test( void )
|
||||
{
|
||||
DIR *dirp;
|
||||
long loc;
|
||||
|
||||
if( result == 1 )
|
||||
{
|
||||
dirp = opendir( "/" );
|
||||
loc = telldir( dirp );
|
||||
(void) loc;
|
||||
result = 0;
|
||||
}
|
||||
|
||||
return result;
|
||||
return ( (int)loc );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user