mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Removed unnecessary include files.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5674 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
3a8365c445
commit
55463bbf91
@ -10,6 +10,10 @@
|
||||
|
||||
|
||||
|
||||
#include <dirent.h>
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <dirent.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
@ -13,7 +12,7 @@
|
||||
|
||||
|
||||
DIR* __fastcall__ opendir (const char*)
|
||||
{
|
||||
{
|
||||
unsigned char buf[32];
|
||||
DIR* dir = 0;
|
||||
DIR d;
|
||||
@ -21,7 +20,7 @@ DIR* __fastcall__ opendir (const char*)
|
||||
/* Setup file name and offset */
|
||||
d.name[0] = '$';
|
||||
d.name[1] = '\0';
|
||||
d.off = 0;
|
||||
d.off = sizeof (buf);
|
||||
|
||||
/* Open the directory on disk for reading */
|
||||
d.fd = open (d.name, O_RDONLY);
|
||||
|
@ -4,9 +4,6 @@
|
||||
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <dirent.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
@ -36,7 +33,7 @@ struct dirent* __fastcall__ readdir (register DIR* dir)
|
||||
goto exitpoint;
|
||||
}
|
||||
dir->off += 2;
|
||||
|
||||
|
||||
/* Read the number of blocks */
|
||||
if (!_dirread (dir, &entry.d_blocks, sizeof (entry.d_blocks))) {
|
||||
goto exitpoint;
|
||||
|
Loading…
x
Reference in New Issue
Block a user