Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2eab3fc3 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

readdir_r is deprecated.

Bug: http://b/32678321
Test: builds, boots
Change-Id: I445edb986f8baff6fe7b5b5e7189f16174c32bd7
parent 9c3769fd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -407,9 +407,8 @@ static void* load_system_driver(const char* kind) {

            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;
                    }