Fix unused-const-variable compiler warning
authorGeorge Nash <george.nash@intel.com>
Thu, 26 Jan 2017 20:43:30 +0000 (12:43 -0800)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 27 Jan 2017 11:26:12 +0000 (11:26 +0000)
commit1557003589c7c9e91c1a4530fd89e3147f96d77c
tree042952942f3fb3987fd938375eb5590cf1bf6d97
parente1f2abd4575b6eb467fe3a5e43157a2b43ee82d5
Fix unused-const-variable compiler warning

The variable MSECS_PER_SEC was declared but not used.
There were two ways to solve this compiler warning.
  1. Delete variable
  2. Use variable

Option 2 was used for this change. In several locations that the
hardcoded number 1000 was used that was clearly intended to be
MSECS_PER_SEC. This also results in a few locations where
multiplication by MSECS_PER_SEC is used to conver the time to
micro seconds.

While doing this one location was updated to also use the USECS_PER_SEC
const variable.

Change-Id: I448fc1ca614b0d8be7ea4836da6406dbd69ef325
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16801
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/connectivity/src/caretransmission.c