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

Commit c68047c1 authored by Elliott Hughes's avatar Elliott Hughes Committed by android-build-merger
Browse files

Merge "readdir_r is deprecated." am: 9ace4848

am: 15f5c001

Change-Id: I19fca038d07c442ee2c77740fb6075e5eb49bf24
parents cac33ec6 15f5c001
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;
                    }