Fixed unused-const-variable compiler warning
authorGeorge Nash <george.nash@intel.com>
Thu, 26 Jan 2017 21:43:18 +0000 (13:43 -0800)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Mon, 30 Jan 2017 17:02:08 +0000 (17:02 +0000)
Removed the CBOR_MAX_SIZE const variable.

In other parts of the code the CBOR_MAX_SIZE is used to
check if realocation can be used to resolve an out-of-memory
cborEncoderResult.

In credresource.c it is not used and can be removed.

Change-Id: I967b84375dd7f3d3532f191aa503d2d80542ffb1
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16805
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Mike Fenelon <mike.fenelon@microsoft.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/csdk/security/src/credresource.c

index 7c477ac..97c5fde 100644 (file)
@@ -78,9 +78,6 @@
  * The value of payload size is increased until reaching belox max cbor size. */
 static const uint16_t CBOR_SIZE = 2048;
 
-/** Max cbor size payload. */
-static const uint16_t CBOR_MAX_SIZE = 4400;
-
 /** CRED size - Number of mandatory items. */
 static const uint8_t CRED_ROOT_MAP_SIZE = 4;
 static const uint8_t CRED_MAP_SIZE = 3;