From 2c3ecf6183dce7ceb3e429893f0c83036172033b Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 31 Mar 2015 12:12:14 +0200 Subject: [PATCH] change check dir to check with jffs2 (mtd) --- src/eitd/xmlutil.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/eitd/xmlutil.cpp b/src/eitd/xmlutil.cpp index 5dd8add9e..9589f1250 100644 --- a/src/eitd/xmlutil.cpp +++ b/src/eitd/xmlutil.cpp @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include #include @@ -517,8 +517,7 @@ static void write_indexxml_footer(FILE *fd) void writeEventsToFile(const char *epgdir) { - struct stat my_stat; - if(stat(epgdir, &my_stat) != 0){ + if(check_dir(epgdir)){ return; }