cn-uofbasel / ccn-lite

CCN-lite, a lightweight implementation of the CCNx protocol and its variations
ISC License
74 stars 63 forks source link

replaces int parameters in calloc/malloc/realloc calls with size_t #275

Closed mfrey closed 6 years ago

mfrey commented 6 years ago

Contribution description

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))

Issues/PRs references

This PR addresses #175 and is related to #271.