Fix build warnings in credresource.c
Fix build warnings in credresource.c

Fixed downcastig warning from size_t to int.

Fixed unused parameter warnings.

Change-Id: Ieb9139d79995bb09ce4afedcfe35b2293759f879
Signed-off-by: George Nash <acbdc39d528a4315fe0b532d55c50ae46f5c1667@intel.com>

rzr/iotivity,rzr/iotivity,iotivity/iotivity,iotivity/iotivity,rzr/iotivity,iotivity/iotivity,iotivity/iotivity,iotivity/iotivity,iotivity/iotivity,rzr/iotivity,rzr/iotivity,iotivity/iotivity,rzr/iotivity,iotivity/iotivity,rzr/iotivity