diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-10-10 11:41:57 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-10-11 17:26:30 +0100 |
commit | f55897af74ac072d3447e5cf513d0f4718b142c7 (patch) | |
tree | 46d9b68f129998ac8c9fbadf098b6be383519f1a /dbus/dbus-spawn-win.c | |
parent | e54d56b7b22dfc4a6eccb4e75e6d76e168fe90a0 (diff) |
Use DBUS_ERROR_INIT instead of dbus_error_init wherever it's clearly equivalent
Diffstat (limited to 'dbus/dbus-spawn-win.c')
-rw-r--r-- | dbus/dbus-spawn-win.c | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/dbus/dbus-spawn-win.c b/dbus/dbus-spawn-win.c index 5ab85164..c2ad16bb 100644 --- a/dbus/dbus-spawn-win.c +++ b/dbus/dbus-spawn-win.c @@ -621,12 +621,8 @@ static dbus_bool_t check_spawn_nonexistent (void *data) { char *argv[4] = { NULL, NULL, NULL, NULL }; - DBusBabysitter *sitter; - DBusError error; - - sitter = NULL; - - dbus_error_init (&error); + DBusBabysitter *sitter = NULL; + DBusError error = DBUS_ERROR_INIT; /*** Test launching nonexistent binary */ @@ -666,12 +662,8 @@ static dbus_bool_t check_spawn_segfault (void *data) { char *argv[4] = { NULL, NULL, NULL, NULL }; - DBusBabysitter *sitter; - DBusError error; - - sitter = NULL; - - dbus_error_init (&error); + DBusBabysitter *sitter = NULL; + DBusError error = DBUS_ERROR_INIT; /*** Test launching segfault binary */ @@ -711,12 +703,8 @@ static dbus_bool_t check_spawn_exit (void *data) { char *argv[4] = { NULL, NULL, NULL, NULL }; - DBusBabysitter *sitter; - DBusError error; - - sitter = NULL; - - dbus_error_init (&error); + DBusBabysitter *sitter = NULL; + DBusError error = DBUS_ERROR_INIT; /*** Test launching exit failure binary */ @@ -756,12 +744,8 @@ static dbus_bool_t check_spawn_and_kill (void *data) { char *argv[4] = { NULL, NULL, NULL, NULL }; - DBusBabysitter *sitter; - DBusError error; - - sitter = NULL; - - dbus_error_init (&error); + DBusBabysitter *sitter = NULL; + DBusError error = DBUS_ERROR_INIT; /*** Test launching sleeping binary then killing it */ |