[IOT-2513]NS Fix for static analyzer issues
authorabitha.s <abitha.s@samsung.com>
Tue, 18 Jul 2017 10:44:10 +0000 (16:14 +0530)
committerUze Choi <uzchoi@samsung.com>
Thu, 20 Jul 2017 12:15:00 +0000 (12:15 +0000)
commitba768efaf3d9781ac59cf2ecc0854a55b108e574
tree1fe65627328c53f3bf421a4f30e873d76f513247
parent423eb833e348fe94b98793da7e226afd28ab0236
[IOT-2513]NS Fix for static analyzer issues

1. Removal of Null dereferences.
2. Adding field width specifiers.
3. removing negative checks on unsigned int.

Change-Id: I086c57f3a2473895cd424856f1e9e71af89e10d1
Signed-off-by: abitha.s <abitha.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21515
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 17afad03deea12a1d61e1bdc758514313109e61e)
Reviewed-on: https://gerrit.iotivity.org/gerrit/21527
service/notification/cpp-wrapper/consumer/src/NSConsumerService.cpp
service/notification/cpp-wrapper/consumer/src/NSProvider.cpp
service/notification/examples/linux/notificationconsumer.c
service/notification/examples/linux/notificationprovider.c
service/notification/src/common/NSUtil.c
service/notification/src/provider/NSProviderNotification.c