Thread (25 messages) flat view 25 messages, 5 authors, 2011-07-19

Re: [PATCH] adaptername: Move adapter naming into a plugin

From: Daniele Forsi <hidden>
Date: 2011-06-07 09:49:30

2011/6/7 Bastien Nocera:
quoted hunk ↗ jump to hunk
diff --git a/src/adapter.c b/src/adapter.c
quoted hunk ↗ jump to hunk
@@ -938,38 +884,29 @@ void adapter_update_local_name(struct btd_adapter *adapter, const char *name)
+               int err = adapter_ops->set_name(adapter->dev_id, name);
+               if (err < 0)
+                       return -err;
this should be:
return err;
else the error isn't detected in the calling code:
+       err = adapter_update_local_name (adapter, name);
+       if (err < 0)
+               return btd_error_failed(msg, strerror(-err));
-- 
Daniele Forsi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help