Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace int as a size parameter with size_t #175

Open
mfrey opened this issue Feb 5, 2018 · 0 comments
Open

replace int as a size parameter with size_t #175

mfrey opened this issue Feb 5, 2018 · 0 comments

Comments

@mfrey
Copy link
Collaborator

mfrey commented Feb 5, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants