X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dbus%2Fdbus-auth-util.c;h=e88d6696a0fc76d5a224b0580e2c323ff880a08f;hb=7d9239c9c78cb6d0b9c282376fcf3cda1de23209;hp=4d25cf0a034dd2c38b0ca0a6857ceededf55e2b5;hpb=7bf62e31a3c820852271768fafc04ba95c31a19f;p=platform%2Fupstream%2Fdbus.git diff --git a/dbus/dbus-auth-util.c b/dbus/dbus-auth-util.c index 4d25cf0..e88d669 100644 --- a/dbus/dbus-auth-util.c +++ b/dbus/dbus-auth-util.c @@ -1,4 +1,4 @@ -/* -*- mode: C; c-file-style: "gnu" -*- */ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* dbus-auth-util.c Would be in dbus-auth.c, but only used for tests/bus * * Copyright (C) 2002, 2003, 2004 Red Hat Inc. @@ -17,9 +17,11 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ + +#include #include "dbus-internals.h" #include "dbus-test.h" #include "dbus-auth.h" @@ -31,7 +33,7 @@ /** @} */ -#ifdef DBUS_BUILD_TESTS +#ifdef DBUS_ENABLE_EMBEDDED_TESTS #include "dbus-test.h" #include "dbus-auth-script.h" #include @@ -44,7 +46,7 @@ process_test_subdir (const DBusString *test_base_dir, DBusString filename; DBusDirIter *dir; dbus_bool_t retval; - DBusError error; + DBusError error = DBUS_ERROR_INIT; retval = FALSE; dir = NULL; @@ -65,7 +67,6 @@ process_test_subdir (const DBusString *test_base_dir, if (!_dbus_string_init (&filename)) _dbus_assert_not_reached ("didn't allocate filename string\n"); - dbus_error_init (&error); dir = _dbus_directory_open (&test_directory, &error); if (dir == NULL) { @@ -166,4 +167,4 @@ _dbus_auth_test (const char *test_data_dir) return TRUE; } -#endif /* DBUS_BUILD_TESTS */ +#endif /* DBUS_ENABLE_EMBEDDED_TESTS */