This PR replaces the int parameters for sizes in malloc/calloc/realloc function definitions in ccnl-malloc.{c,h} with size_t. It also replaces the number of element parameter n of calloc with size_t. This also results in a minor modification to struct mhdr which holds information on allocated memory (replacing the size parameter of type int with size_t results in a larger struct (in terms of used memory))
Contribution description
This PR replaces the
int
parameters for sizes inmalloc
/calloc
/realloc
function definitions inccnl-malloc.{c,h}
withsize_t
. It also replaces the number of element parametern
ofcalloc
withsize_t
. This also results in a minor modification tostruct mhdr
which holds information on allocated memory (replacing thesize
parameter of typeint
withsize_t
results in a larger struct (in terms of used memory))Issues/PRs references
This PR addresses #175 and is related to #271.