commit | 2eab3fc3084eb65ccb29d2676bad6044818d1318 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Jan 10 16:35:48 2018 -0800 |
committer | Elliott Hughes <enh@google.com> | Wed Jan 10 16:35:48 2018 -0800 |
tree | 27bed4c074f9f952f637dd712b537d2641693a43 | |
parent | 9c3769fd66d19488ee8952e48d4b8c387de9dc0d [diff] [blame] |
readdir_r is deprecated. Bug: http://b/32678321 Test: builds, boots Change-Id: I445edb986f8baff6fe7b5b5e7189f16174c32bd7
diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp index 9822849..91a3455 100644 --- a/opengl/libs/EGL/Loader.cpp +++ b/opengl/libs/EGL/Loader.cpp
@@ -407,9 +407,8 @@ DIR* d = opendir(search); if (d != NULL) { - struct dirent cur; struct dirent* e; - while (readdir_r(d, &cur, &e) == 0 && e) { + while ((e = readdir(d)) != NULL) { if (e->d_type == DT_DIR) { continue; }