X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dbind%2Fdbind.c;h=e154f8571a3a8c79f646c1b497cd841a52e79130;hb=3785cfb93aa4a29b70ffdd39686f14d2c8e26b0b;hp=98467e65b3f2cfb9c3782cda9c002c398f0e3968;hpb=150f70d6e3e41e573470965c9e51ee704612d334;p=platform%2Fupstream%2Fat-spi2-core.git diff --git a/dbind/dbind.c b/dbind/dbind.c index 98467e6..e154f85 100644 --- a/dbind/dbind.c +++ b/dbind/dbind.c @@ -2,19 +2,19 @@ * Copyright 2008-2011 Novell, Inc. * * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public + * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. + * Lesser General Public License for more details. * - * You should have received a copy of the GNU Library General Public + * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. */ #include @@ -162,7 +162,6 @@ dbind_method_call_reentrant_va (DBusConnection *cnx, if (dbus_message_get_type (reply) == DBUS_MESSAGE_TYPE_ERROR) { - const char *name = dbus_message_get_error_name (reply); goto out; } /* demarshal */ @@ -246,6 +245,7 @@ dbind_method_call_reentrant (DBusConnection *cnx, /*---------------------------------------------------------------------------*/ +/* TODO: opt_error is unused; should be removed */ dbus_bool_t dbind_emit_signal_va (DBusConnection *cnx, const char *path, @@ -258,17 +258,8 @@ dbind_emit_signal_va (DBusConnection *cnx, dbus_bool_t success = FALSE; DBusMessage *msg = NULL; DBusMessageIter iter; - DBusError *err, real_err; const char *p; - dbus_error_init (&real_err); - - if (opt_error) - err = opt_error; - else { - err = &real_err; - } - msg = dbus_message_new_signal (path, interface, signal); if (!msg) goto out; @@ -286,9 +277,6 @@ out: if (msg) dbus_message_unref (msg); - if (dbus_error_is_set (&real_err)) - dbus_error_free (&real_err); - return success; }