summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbus/dbus-sysdeps-unix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c
index fda5d8e7..106a12ba 100644
--- a/dbus/dbus-sysdeps-unix.c
+++ b/dbus/dbus-sysdeps-unix.c
@@ -4341,13 +4341,13 @@ _dbus_close_all (void)
{
for (;;)
{
- struct dirent buf, *de;
- int k, fd;
+ struct dirent *de;
+ int fd;
long l;
char *e = NULL;
- k = readdir_r (d, &buf, &de);
- if (k != 0 || !de)
+ de = readdir (d);
+ if (!de)
break;
if (de->d_name[0] == '.')