Tuesday, 3 September 2013

warning: initialization makes pointer from integer without a cast

warning: initialization makes pointer from integer without a cast

I will just keep things simple:
Here is the function I built, which will create a new dnode:
struct dnode *dnode_create() {
return calloc(1, sizeof(struct dnode));
}
and here is how I call it:
struct dnode *newnode = dnode_create();
I don't understand how this involved with integer?

No comments:

Post a Comment