OSDN Git Service

obexd/MAP: Fix protected property value
authorSzymon Janc <szymon.janc@tieto.com>
Fri, 4 Oct 2013 09:05:37 +0000 (11:05 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 4 Oct 2013 11:10:33 +0000 (14:10 +0300)
"Sent" flag value was returned instead of "Protected" one.
This also fix following build error:

  CC     obexd/client/obexd-map.o
obexd/client/map.c:711:17: error: ‘get_protected’ defined but not
    used [-Werror=unused-function]
cc1: all warnings being treated as errors

obexd/client/map.c

index 801d715..4373d74 100644 (file)
@@ -814,7 +814,7 @@ static const GDBusPropertyTable map_msg_properties[] = {
        { "Priority", "b", get_priority },
        { "Read", "b", get_read, set_read },
        { "Sent", "b", get_sent },
-       { "Protected", "b", get_sent },
+       { "Protected", "b", get_protected },
        { "Deleted", "b", NULL, set_deleted },
        { }
 };