Remove potential defects detected in the static analyzer.
authorKIM JungYong <jyong2.kim@samsung.com>
Wed, 27 Jul 2016 04:07:47 +0000 (13:07 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 28 Jul 2016 05:25:29 +0000 (05:25 +0000)
commit84c48eb9a0e9885adde8f07de31cb5ca6d25267d
treede92d80d4053e5e5f6a0fbf03969820f68d13b2c
parentfb557b59fab5834bed2d9672c7e77f8dbd24754c
Remove potential defects detected in the static analyzer.

1. Applied code conventions.
2. Initialized variable when it was declared.
3. Added mutex unlock operation when consumer service is terminated.
4. Added enum class instead constant values at consumer Test code.
5. Changed enum class to NSSelector from NSAccessPolicy.

Change-Id: Icbcdb6f45bfdf41902d25c4ba5515d7318ea330a
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9751
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/notification/examples/linux/notificationconsumer.c
service/notification/src/consumer/NSConsumerCommon.h
service/notification/src/consumer/NSConsumerCommunication.c
service/notification/src/consumer/NSConsumerDiscovery.c
service/notification/src/consumer/NSConsumerInternalTaskController.c
service/notification/src/consumer/NSConsumerScheduler.c
service/notification/src/consumer/NSThread.c
service/notification/src/consumer/cache/linux/NSConsumerMemoryCache.c
service/notification/unittest/NSConsumerTest.cpp