Simplified OICGetCurrentTime() implementation.
authorOssama Othman <ossama.othman@intel.com>
Tue, 17 Nov 2015 23:36:47 +0000 (15:36 -0800)
committerJon A. Cruz <jonc@osg.samsung.com>
Wed, 18 Nov 2015 22:03:57 +0000 (22:03 +0000)
commitc34fa1689725961bb6144f9aca1167c151565f8a
tree5485f353cd26123174d76c1d31860c0d62255d3b
parent2c29218f99aea0509d41e240da5a40aee2c795e9
Simplified OICGetCurrentTime() implementation.

Restructured the OICGetCurrentTime() implementation to remove two
unnecessary variables.  This allows us to drop a run-time conditional
in the _POSIX_MONOTONIC_CLOCK == 0 case, as well as fix an "unused
variable" compile-time warning.  Include directives were also cleaned
up to the minimum needed.

Change-Id: I8f478c08310a74ad642aad5b45f9fc3310b102de
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/4249
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/c_common/oic_time/src/oic_time.c