Fixed bug in u_arraylist_contains caused by poor member naming.
authorJon A. Cruz <jonc@osg.samsung.com>
Tue, 1 Sep 2015 22:42:38 +0000 (15:42 -0700)
committerJon A. Cruz <jonc@osg.samsung.com>
Thu, 3 Sep 2015 04:18:29 +0000 (04:18 +0000)
commitcf4b98196a3d2ccd525f20aca763ced0fe737f99
treeca2fd14148dd4c7e947283c1772f80ae8cf96bbd
parent357aaf90c14532ac54123061465f009478933ed2
Fixed bug in u_arraylist_contains caused by poor member naming.

Corrected a bug in u_arraylist_contains caused by the member names
'size' and 'length' being too similar and hiding a logic problem.
Fixed by changing 'size' to the more common 'capacity'.

The base fix (without any of the name change) was pulled from
Vimala's revision 10 submission of change 2301.
https://gerrit.iotivity.org/gerrit/#/c/2301/10/

Change-Id: I22ac6fc159669ad58212b145f70cb559187fa999
Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2339
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Vimala Vishwanathan <vimala.v@samsung.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
resource/csdk/connectivity/common/inc/uarraylist.h
resource/csdk/connectivity/common/src/uarraylist.c
resource/csdk/connectivity/test/uarraylist_test.cpp