Removed duplicate switch case in OCDoResource.
authorMandeep Shetty <mandeep.shetty@intel.com>
Wed, 20 May 2015 00:08:42 +0000 (17:08 -0700)
committerErich Keane <erich.keane@intel.com>
Wed, 20 May 2015 21:20:21 +0000 (21:20 +0000)
commit7835dbac72ce84c508726236db92bef85618b1b7
treeefe910a22d71814dd5592b3059a910e4c87a1791
parent1704c7bd784d21e727bdce7a0d1d4562c1381ea6
Removed duplicate switch case in OCDoResource.

There were two separate switch statements for validation and converting
to CA method. Moved it to one.
Also improved logging, variable names and vertical spacing in some
sections.

Change-Id: Ic68253dd23e5da15d469951293fc4173a13f7afd
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1045
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/src/ocobserve.c
resource/csdk/stack/src/ocstack.c