1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-28 10:55:43 +00:00

Use FileStat instead of stat.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5640 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2012-04-03 13:28:33 +00:00
parent 2cd0b5ae91
commit 31e0666087

View File

@ -37,14 +37,13 @@
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <unistd.h>
/* common */
#include "abend.h"
#include "cmdline.h"
#include "filestat.h"
#include "print.h"
#include "version.h"
#include "xmalloc.h"
@ -128,7 +127,7 @@ static void OptChipDir (const char* Opt attribute ((unused)), const char* Arg)
strcpy (Name + DirLen + 1, E->d_name);
/* Stat the file */
if (stat (Name, &S) != 0) {
if (FileStat (Name, &S) != 0) {
Warning ("Cannot stat `%s': %s", Name, strerror (errno));
xfree (Name);
continue;