From aa2e873ebd8ab45c3f7fb5e72751a5127a5e4f28 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 21 Mar 2011 10:16:28 +0000 Subject: [PATCH] _dbus_check_fdleaks_enter, _dbus_check_fdleaks_leave: whitespace --- dbus/dbus-message-util.c | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/dbus/dbus-message-util.c b/dbus/dbus-message-util.c index 2d2b6fe..e06886a 100644 --- a/dbus/dbus-message-util.c +++ b/dbus/dbus-message-util.c @@ -157,7 +157,7 @@ _dbus_check_fdleaks_enter (void) /* This works on Linux only */ - if ((d = opendir("/proc/self/fd"))) + if ((d = opendir ("/proc/self/fd"))) { struct dirent *de; @@ -171,21 +171,21 @@ _dbus_check_fdleaks_enter (void) continue; errno = 0; - l = strtol(de->d_name, &e, 10); - _dbus_assert(errno == 0 && e && !*e); + l = strtol (de->d_name, &e, 10); + _dbus_assert (errno == 0 && e && !*e); fd = (int) l; if (fd < 3) continue; - if (fd == dirfd(d)) + if (fd == dirfd (d)) continue; FD_SET (fd, &fds->set); } - closedir(d); + closedir (d); } return fds; @@ -202,7 +202,7 @@ _dbus_check_fdleaks_leave (DBusInitialFDs *fds) /* This works on Linux only */ - if ((d = opendir("/proc/self/fd"))) + if ((d = opendir ("/proc/self/fd"))) { struct dirent *de; @@ -216,25 +216,25 @@ _dbus_check_fdleaks_leave (DBusInitialFDs *fds) continue; errno = 0; - l = strtol(de->d_name, &e, 10); - _dbus_assert(errno == 0 && e && !*e); + l = strtol (de->d_name, &e, 10); + _dbus_assert (errno == 0 && e && !*e); fd = (int) l; if (fd < 3) continue; - if (fd == dirfd(d)) + if (fd == dirfd (d)) continue; if (FD_ISSET (fd, &fds->set)) continue; - _dbus_warn("file descriptor %i leaked in %s.\n", fd, __FILE__); - _dbus_assert_not_reached("fdleaks"); + _dbus_warn ("file descriptor %i leaked in %s.\n", fd, __FILE__); + _dbus_assert_not_reached ("fdleaks"); } - closedir(d); + closedir (d); } free (fds); -- 1.7.4.1