OSDN Git Service

core: Fix record handle type for ext_io
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 13 Nov 2012 08:24:03 +0000 (10:24 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 13 Nov 2012 08:24:03 +0000 (10:24 +0200)
src/profile.c

index 7555c8c..187dae6 100644 (file)
@@ -92,7 +92,7 @@ struct ext_io {
 
        bool resolving;
        btd_profile_cb cb;
-       uint16_t rec_handle;
+       uint32_t rec_handle;
 
        guint auth_id;
        DBusPendingCall *new_conn;
@@ -513,7 +513,7 @@ static sdp_record_t *ext_get_record(struct ext_profile *ext)
        return NULL;
 }
 
-static uint16_t ext_register_record(struct ext_profile *ext,
+static uint32_t ext_register_record(struct ext_profile *ext,
                                                        const bdaddr_t *src)
 {
        sdp_record_t *rec;
@@ -542,7 +542,7 @@ static int ext_start_servers(struct ext_profile *ext,
        BtIOConfirm confirm;
        BtIOConnect connect;
        GError *err = NULL;
-       uint16_t handle;
+       uint32_t handle;
        GIOChannel *io;
 
        handle = ext_register_record(ext, adapter_get_address(adapter));