ccn-lite
ccn-lite copied to clipboard
replace int as a size parameter with size_t
We should use size_t
for type safety purposes over int
. Instead of
static inline void* ccnl_malloc(int s);
It should be
#include <string.h>
static inline void* ccnl_malloc(size_t s);
Or is there a good reason why ccn-lite uses int
over size_t
I am missing?