warning: assignment makes pointer from integer without a castCode:Node *MakeNode(StackEntry item) { Node *nptr; if( (nptr = malloc ( sizeof nptr) ) != NULL) { nptr = item; return item; } else return NULL; }
warning: assignment makes pointer from integer without a cast
warning: return makes pointer from integer without a cast
I am getting these errors, can anyone tell me why, and make the corrections? Thanks