diff options
author | Florian Weimer <fweimer@redhat.com> | 2013-12-19 11:16:12 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-21 18:35:55 -0500 |
commit | 6887ec4f00d7c10cd70da3e10d570684bf32d28d (patch) | |
tree | 74534a932e8e8376055035d4110a4cb7331cb83e /src | |
parent | d78096b343400d7a9f513a55b76c8de28adb2e08 (diff) |
delta: replace readdir_r with readdir
Diffstat (limited to 'src')
-rw-r--r-- | src/delta/delta.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/delta/delta.c b/src/delta/delta.c index 0785e7b5e7..a26af02b7a 100644 --- a/src/delta/delta.c +++ b/src/delta/delta.c @@ -280,13 +280,13 @@ static int enumerate_dir(Hashmap *top, Hashmap *bottom, Hashmap *drops, const ch for (;;) { struct dirent *de; - union dirent_storage buf; int k; char *p; - k = readdir_r(d, &buf.de, &de); - if (k != 0) - return -k; + errno = 0; + de = readdir(d); + if (!de && errno != 0) + return -errno; if (!de) break; |