• George Nash's avatar
    Update code to use size_t · 0f20d9e3
    George Nash authored
    The`size_t` type is used to represent the size of an object.
    It is defined as the return type of the sizeof operator. As an
    implication size_t is used for holding an array index.
    Many of the functions that would naturally return `size_t`
    also return -1 when an error has occured. To hold the error
    these functions still return int or long.
    Being consistant with the usage of `size_t` helps reduce the
    amount of casting when compiling for systems that are not
    This is a first pass through the code to identify locations
    that `int` or `long` was used when `size_t` probably should
    have been used.
    This is not an exastive update.
    Change-Id: I040f4c00cb5b3fd97810381d2f0a3e7ab82213ad
    Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
    Reviewed-on: https://gerrit.iotivity.org/gerrit/26619Tested-by: default avatarIoTivity Jenkins <jenkins-daemon@iotivity.org>
    Reviewed-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
ipadapter.c 5.27 KB