Resolved Klocwork warnings for C++ Stack & Samples
authorShilpa Sodani <shilpa.a.sodani@intel.com>
Wed, 14 Jan 2015 23:56:47 +0000 (15:56 -0800)
committerSudarshan Prasad <sudarshan.prasad@intel.com>
Fri, 23 Jan 2015 21:49:25 +0000 (21:49 +0000)
commitf3b534aa0ff25d308bb974af66f4f732432fe5b5
tree5962a0e776fdccaaadd1e3fa44baff35ad478cc1
parent6baf3d32af01b99cc56466e51b541a6be3a911f4
Resolved Klocwork warnings for C++ Stack & Samples

Fixed comment, space issue and added default case to switch in
groupclient.cpp

Made code compliance to code guideline

Resolve Infinite loop warning and Memory leak warning.
Also replaced multiple if-else with switch to match code
standards.

Change-Id: I125ab9d20fe4c8352f261afa7a538a7487aa7880
Signed-off-by: Shilpa Sodani <shilpa.a.sodani@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/141
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
resource/examples/groupclient.cpp
resource/examples/groupserver.cpp
resource/examples/simpleserver.cpp
resource/src/InProcClientWrapper.cpp