IOT-2539 Fix warnings in routing code 35/22935/2
authorGeorge Nash <george.nash@intel.com>
Fri, 20 Oct 2017 20:04:01 +0000 (13:04 -0700)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 20 Oct 2017 21:34:16 +0000 (21:34 +0000)
commita161a07b9e7ae86b34bc52bb83afaca4209fed2d
tree4bef272b98186d550fd8e8c42f3cddeae7909d1b
parentef8d1bc984972f37a004e9085874ab46ee481df1
IOT-2539 Fix warnings in routing code

Fixed -Werror=unused-const-variable= found in
routingtablemanager.c the USECS_PER_SEC was not
used anywhere and was removed.

Fixed -Werror=format= found in routingmanager.c
current time is a uint64 from inttypes.h
%llu is long long unsigned.

C99 spec suggests the type long long int should
be at least 64 bits but may be more.  On some
platfroms it might be 128-bits. In printf %lld
could be interpreted as 64-bits or 128-bits which
could result in undefined behavior.

The PRIu64 macro from inttypes will always be interpreted
as 64-bits by printf.

Change-Id: Iaf45d5a8382c4af8f3db973700db1d90b4472cc1
Signed-off-by: George Nash <george.nash@intel.com>
resource/csdk/routing/src/routingmanager.c
resource/csdk/routing/src/routingtablemanager.c