From 55463bbf91e41d319ffc176f62ca5d90738ecbb7 Mon Sep 17 00:00:00 2001 From: uz Date: Sun, 3 Jun 2012 14:32:15 +0000 Subject: [PATCH] Removed unnecessary include files. git-svn-id: svn://svn.cc65.org/cc65/trunk@5674 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/cbm/dir.h | 4 ++++ libsrc/cbm/opendir.c | 5 ++--- libsrc/cbm/readdir.c | 5 +---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libsrc/cbm/dir.h b/libsrc/cbm/dir.h index c7c9ae21b..f3239c4aa 100644 --- a/libsrc/cbm/dir.h +++ b/libsrc/cbm/dir.h @@ -10,6 +10,10 @@ +#include + + + /*****************************************************************************/ /* Data */ /*****************************************************************************/ diff --git a/libsrc/cbm/opendir.c b/libsrc/cbm/opendir.c index 569c4918a..8b2334da9 100644 --- a/libsrc/cbm/opendir.c +++ b/libsrc/cbm/opendir.c @@ -4,7 +4,6 @@ #include #include -#include #include #include #include @@ -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); diff --git a/libsrc/cbm/readdir.c b/libsrc/cbm/readdir.c index 58c244de6..0a20bdd06 100644 --- a/libsrc/cbm/readdir.c +++ b/libsrc/cbm/readdir.c @@ -4,9 +4,6 @@ -#include -#include -#include #include #include #include @@ -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; -- 2.39.5