summaryrefslogtreecommitdiff
path: root/obexd
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2013-10-04 11:05:25 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-10-04 12:21:52 +0300
commitd0b3d72fea2870c4d7f628c298aa29f31b369343 (patch)
tree88d3f14c1ed98117cbc8f4321ab8a84e36c1f836 /obexd
parentc1ab9163423184fb601ff08fbc3224b27d433157 (diff)
obexd/bluetooth: Remove unused local variables
This ix following build errors: CC obexd/plugins/obexd-bluetooth.o obexd/plugins/bluetooth.c: In function ‘register_profile_reply’: obexd/plugins/bluetooth.c:202:10: error: unused variable ‘err’ [-Werror=unused-variable] obexd/plugins/bluetooth.c: In function ‘name_acquired’: obexd/plugins/bluetooth.c:367:15: error: unused variable ‘uuid’ [-Werror=unused-variable] obexd/plugins/bluetooth.c: In function ‘name_released’: obexd/plugins/bluetooth.c:389:15: error: unused variable ‘uuid’ [-Werror=unused-variable] obexd/plugins/bluetooth.c: In function ‘bluetooth_start’: obexd/plugins/bluetooth.c:400:10: error: unused variable ‘ios’ [-Werror=unused-variable]
Diffstat (limited to 'obexd')
-rw-r--r--obexd/plugins/bluetooth.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/obexd/plugins/bluetooth.c b/obexd/plugins/bluetooth.c
index 017ff6091..7f8a26d29 100644
--- a/obexd/plugins/bluetooth.c
+++ b/obexd/plugins/bluetooth.c
@@ -199,7 +199,6 @@ static void register_profile_reply(DBusPendingCall *call, void *user_data)
struct bluetooth_profile *profile = user_data;
DBusMessage *reply = dbus_pending_call_steal_reply(call);
DBusError derr;
- GError *err = NULL;
dbus_error_init(&derr);
if (!dbus_set_error_from_message(&derr, reply)) {
@@ -364,7 +363,6 @@ static void name_acquired(DBusConnection *conn, void *user_data)
for (l = profiles; l; l = l->next) {
struct bluetooth_profile *profile = l->data;
- const char *uuid;
if (profile->path != NULL)
continue;
@@ -386,7 +384,6 @@ static void name_released(DBusConnection *conn, void *user_data)
for (l = profiles; l; l = l->next) {
struct bluetooth_profile *profile = l->data;
- const char *uuid;
if (profile->path == NULL)
continue;
@@ -397,7 +394,6 @@ static void name_released(DBusConnection *conn, void *user_data)
static void *bluetooth_start(struct obex_server *server, int *err)
{
- GSList *ios = NULL;
const GSList *l;
for (l = server->drivers; l; l = l->next) {