ccn-lite icon indicating copy to clipboard operation
ccn-lite copied to clipboard

replace int as a size parameter with size_t

Open mfrey opened this issue 7 years ago • 0 comments

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?

mfrey avatar Feb 05 '18 08:02 mfrey