diff options
author | Simon McVittie <smcv@collabora.com> | 2018-12-17 11:30:00 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2019-01-21 15:20:06 +0000 |
commit | ab4c7c52f9fac6d70405a32439f6ef37b025f61e (patch) | |
tree | d91f7ad49cf567bdf211c0a90f5fd15541d1c5b8 /dbus | |
parent | f6213c709b7ee1c328c6bc20491ef5f2facf530b (diff) | |
download | dbus-ab4c7c52f9fac6d70405a32439f6ef37b025f61e.tar.gz |
dbus-auth-util: Remove all trailing whitespace
This is in preparation for moving the file: our commit hook would
object to the delete + add otherwise.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/dbus-auth-util.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/dbus/dbus-auth-util.c b/dbus/dbus-auth-util.c index c8ba6042..5fb30a8e 100644 --- a/dbus/dbus-auth-util.c +++ b/dbus/dbus-auth-util.c @@ -50,17 +50,17 @@ process_test_subdir (const DBusString *test_base_dir, retval = FALSE; dir = NULL; - + if (!_dbus_string_init (&test_directory)) _dbus_test_fatal ("didn't allocate test_directory"); _dbus_string_init_const (&filename, subdir); - + if (!_dbus_string_copy (test_base_dir, 0, &test_directory, 0)) _dbus_test_fatal ("couldn't copy test_base_dir to test_directory"); - if (!_dbus_concat_dir_and_file (&test_directory, &filename)) + if (!_dbus_concat_dir_and_file (&test_directory, &filename)) _dbus_test_fatal ("couldn't allocate full path"); _dbus_string_free (&filename); @@ -83,7 +83,7 @@ process_test_subdir (const DBusString *test_base_dir, while (_dbus_directory_get_next_file (dir, &filename, &error)) { DBusString full_path; - + if (!_dbus_string_init (&full_path)) _dbus_test_fatal ("couldn't init string"); @@ -119,9 +119,9 @@ process_test_subdir (const DBusString *test_base_dir, dbus_error_free (&error); goto failed; } - + retval = TRUE; - + failed: if (dir) @@ -139,28 +139,28 @@ process_test_dirs (const char *test_data_dir) dbus_bool_t retval; retval = FALSE; - + _dbus_string_init_const (&test_directory, test_data_dir); if (!process_test_subdir (&test_directory, "auth")) goto failed; retval = TRUE; - + failed: _dbus_string_free (&test_directory); - + return retval; } dbus_bool_t _dbus_auth_test (const char *test_data_dir) { - + if (test_data_dir == NULL) return TRUE; - + if (!process_test_dirs (test_data_dir)) return FALSE; |