diff options
author | Frank Neumann <fnu@yavdr.org> | 2017-06-01 21:15:48 +0200 |
---|---|---|
committer | Frank Neumann <fnu@yavdr.org> | 2017-06-01 21:15:48 +0200 |
commit | 279deb58064c2810a845af5c5fa306c4787e4767 (patch) | |
tree | 884c39a21bac62c21dc3a5d94b4bfaf6e9933d59 /loader.c | |
parent | 79022b11e7ba817550dee1a6e59a8d06e6a1d2a9 (diff) | |
download | vdr-plugin-text2skin-279deb58064c2810a845af5c5fa306c4787e4767.tar.gz vdr-plugin-text2skin-279deb58064c2810a845af5c5fa306c4787e4767.tar.bz2 |
try fix deprecated readdir_r.
Diffstat (limited to 'loader.c')
-rw-r--r-- | loader.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -12,11 +12,11 @@ #include <dirent.h> void cText2SkinLoader::Start(void) { - DIR *d = opendir(SkinPath().c_str()); + DIR *d; + struct dirent *result; + d = opendir(SkinPath().c_str()); if (d) { - struct dirent ent; - struct dirent *result; - while ((readdir_r(d, &ent, &result)) == 0 && result != NULL) { + while ((result = readdir(p)) != NULL) { struct stat buf; if (strcmp(result->d_name, ".") == 0 || strcmp(result->d_name, "..") == 0) continue; |