diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2006-06-06 13:11:36 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2006-06-06 13:11:36 +0000 | 
| commit | 4de9c0a48bcd03416565894c3186d41e65eb8770 (patch) | |
| tree | 07e0ae952ec84099879aac5797eda5bcc0634a33 /hcid/dbus.c | |
| parent | efb24210a3a977fb7474700c37960b3d794793b6 (diff) | |
Fix checks for register_dbus_path() return value
Diffstat (limited to 'hcid/dbus.c')
| -rw-r--r-- | hcid/dbus.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/hcid/dbus.c b/hcid/dbus.c index 8ee736ef..544ed86a 100644 --- a/hcid/dbus.c +++ b/hcid/dbus.c @@ -422,7 +422,7 @@ int hcid_dbus_register_device(uint16_t id)  	struct hci_conn_info *ci = NULL;  	snprintf(path, sizeof(path), "%s/hci%d", BASE_PATH, id); -	if (!register_dbus_path(path, id, &obj_dev_vtable, FALSE)) +	if (register_dbus_path(path, id, &obj_dev_vtable, FALSE) < 0)  		return -1;  	dd = hci_open_dev(id); @@ -1365,7 +1365,7 @@ int hcid_dbus_init(void)  		return -1;  	} -	if (!register_dbus_path(BASE_PATH, INVALID_DEV_ID, &obj_mgr_vtable, TRUE)) +	if (register_dbus_path(BASE_PATH, INVALID_DEV_ID, &obj_mgr_vtable, TRUE) < 0)  		return -1;  	if (!dbus_connection_add_filter(connection, hci_dbus_signal_filter, NULL, NULL)) { | 
