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

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

Merge "readdir_r is deprecated." am: 9ace4848 am: 15f5c001

am: c68047c1

Change-Id: I85db58062477eefc1cfc47d2fc9def56cb36a1b1
parents 50a14220 c68047c1
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;
                    }