config: fix build after XI2 API changes to RemoveDevice.
This patch fixes the build with --enable-config-dbus is enabled (default disabled). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
07c5941181
commit
21ee53060b
|
@ -175,7 +175,7 @@ add_device(DBusMessage *message, DBusMessage *reply, DBusError *error)
|
|||
unwind:
|
||||
if (ret != Success) {
|
||||
if (dev)
|
||||
RemoveDevice(dev);
|
||||
RemoveDevice(dev, TRUE);
|
||||
|
||||
err = -ret;
|
||||
dbus_message_iter_append_basic(&reply_iter, DBUS_TYPE_INT32, &err);
|
||||
|
|
Loading…
Reference in New Issue
Block a user