diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-02-16 17:15:24 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-02-16 17:15:24 +0000 |
| commit | 3d5dd25c62114875146d4d4e09a58060789546c7 (patch) | |
| tree | 5997f70737e8f3f90fc4cf8da1e2b51f5de60676 /lib/dvb/epgcache.cpp | |
| parent | f42469ee4922272eab2c5718fcc3c27894ededf5 (diff) | |
| download | enigma2-3d5dd25c62114875146d4d4e09a58060789546c7.tar.gz enigma2-3d5dd25c62114875146d4d4e09a58060789546c7.zip | |
remove unneeded voodoo
Diffstat (limited to 'lib/dvb/epgcache.cpp')
| -rw-r--r-- | lib/dvb/epgcache.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/dvb/epgcache.cpp b/lib/dvb/epgcache.cpp index acdc9a9d..6c98011b 100644 --- a/lib/dvb/epgcache.cpp +++ b/lib/dvb/epgcache.cpp @@ -861,11 +861,10 @@ void eEPGCache::thread() void eEPGCache::load() { - unlink("/hdd/epg.dat.$$$"); - rename("/hdd/epg.dat", "/hdd/epg.dat.$$$"); - FILE *f = fopen("/hdd/epg.dat.$$$", "r"); + FILE *f = fopen("/hdd/epg.dat", "r"); if (f) { + unlink("/hdd/epg.dat"); int size=0; int cnt=0; #if 0 @@ -893,7 +892,6 @@ void eEPGCache::load() { eDebug("[EPGC] epg file has incorrect byte order.. dont read it"); fclose(f); - unlink("/hdd/epg.dat.$$$"); return; } char text1[13]; @@ -972,7 +970,6 @@ void eEPGCache::load() fclose(f); } } - unlink("/hdd/epg.dat.$$$"); } void eEPGCache::save() |
