Rename device_authentication_complete to device_auth_req_free
diff --git a/src/device.c b/src/device.c
index 530296a..529e0de 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2010,7 +2010,7 @@
agent_cancel(auth->agent);
}
-static void device_authentication_complete(struct btd_device *device)
+static void device_auth_req_free(struct btd_device *device)
{
g_free(device->authr);
device->authr = NULL;
@@ -2032,7 +2032,7 @@
return;
}
- device_authentication_complete(device);
+ device_auth_req_free(device);
/* If we're already paired nothing more is needed */
if (device->paired)
@@ -2228,7 +2228,7 @@
if (err < 0) {
error("Failed requesting authentication");
- device_authentication_complete(device);
+ device_auth_req_free(device);
}
return err;
@@ -2285,7 +2285,7 @@
if (!aborted)
cancel_authentication(auth);
- device_authentication_complete(device);
+ device_auth_req_free(device);
}
gboolean device_is_authenticating(struct btd_device *device)