summaryrefslogtreecommitdiff
path: root/obexd/src
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2013-10-04 11:05:31 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-10-04 14:10:33 +0300
commitc8f07de497e7652a153b32d66bca120fa3e831c1 (patch)
tree60a9c99aba36f449e2af900aa927a94c7ad10848 /obexd/src
parentf3a0cd30b7f67cd0aa2684a4d6eaa73cbe5f70aa (diff)
downloadbluez-c8f07de497e7652a153b32d66bca120fa3e831c1.tar.gz
obexd: Remove unused local variables
This fix following build errors: obexd/src/manager.c: In function ‘get_root’: obexd/src/manager.c:253:23: error: unused variable ‘os’ [-Werror=unused-variable] obexd/src/manager.c: In function ‘manager_emit_transfer_started’: obexd/src/manager.c:534:22: error: unused variable ‘id’ [-Werror=unused-variable] obexd/src/manager.c: In function ‘manager_request_authorization’: obexd/src/manager.c:684:14: error: unused variable ‘type’ [-Werror=unused-variable] obexd/src/manager.c:683:14: error: unused variable ‘filename’ [-Werror=unused-variable]
Diffstat (limited to 'obexd/src')
-rw-r--r--obexd/src/manager.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/obexd/src/manager.c b/obexd/src/manager.c
index a67838ca0..00f353715 100644
--- a/obexd/src/manager.c
+++ b/obexd/src/manager.c
@@ -250,7 +250,6 @@ static gboolean get_target(const GDBusPropertyTable *property,
static gboolean get_root(const GDBusPropertyTable *property,
DBusMessageIter *iter, void *data)
{
- struct obex_session *os = data;
const char *root;
root = obex_option_root_folder();
@@ -531,8 +530,6 @@ void manager_cleanup(void)
void manager_emit_transfer_started(struct obex_transfer *transfer)
{
- static unsigned int id = 0;
-
transfer->status = TRANSFER_STATUS_ACTIVE;
g_dbus_emit_property_changed(connection, transfer->path,
@@ -680,8 +677,6 @@ int manager_request_authorization(struct obex_transfer *transfer, int32_t time,
struct obex_session *os = transfer->session;
DBusMessage *msg;
DBusPendingCall *call;
- const char *filename = os->name ? os->name : "";
- const char *type = os->type ? os->type : "";
unsigned int watch;
gboolean got_reply;