]> git.pld-linux.org Git - packages/bluez-utils.git/blame_incremental - bluez-utils-dbuslate.patch
- support for dbus 0.3x (patches from fedora)
[packages/bluez-utils.git] / bluez-utils-dbuslate.patch
... / ...
CommitLineData
1--- bluez-utils-2.15/hcid/main.c~ 2005-02-01 00:13:02.000000000 +0000
2+++ bluez-utils-2.15/hcid/main.c 2005-03-03 15:44:56.000000000 +0000
3@@ -573,7 +573,6 @@ int main(int argc, char *argv[], char *e
4 #ifdef ENABLE_DBUS
5 if (hcid_dbus_init() == FALSE && hcid.dbus_pin_helper) {
6 syslog(LOG_ERR, "Unable to get on D-BUS");
7- exit(1);
8 }
9 #else
10 if (hcid.dbus_pin_helper) {
11--- bluez-utils-2.15/hcid/dbus.c~ 2005-02-01 00:13:02.000000000 +0000
12+++ bluez-utils-2.15/hcid/dbus.c 2005-03-03 15:38:53.000000000 +0000
13@@ -113,6 +113,9 @@ void hcid_dbus_request_pin(int dev, stru
14 DBusPendingCall *pending = NULL;
15 struct pin_request *req;
16
17+ if (!connection && !hcid_dbus_init())
18+ goto failed;
19+
20 message = dbus_message_new_method_call(SERVICE_NAME, PATH_NAME,
21 INTERFACE_NAME, REQUEST_NAME);
22 if (message == NULL) {
This page took 0.029991 seconds and 4 git commands to generate.