HI ALL,
i have written some code of line as
typedef struct _nodeList
{
unsigned int pointCode;
struct NodeList *next;
}NodeList;
typedef unsigned int PointCode ;
int right_configuration(NodeList *head,PointCode x, PointCode y)
{
NodeList *node1;
NodeList *node = head;
int k =0;
unsigned int NodePoint[100];
node1 = (NodeList *)malloc(sizeof(NodeList));
node1->pointCode= y;
while(node->next) /*store point codes before x */
{
if(node->pointCode != x)
NodePoint[k] = node->pointCode;
k++;
node = node->next; /* warning 1 */
}
node->next = node1; /* warning 2*/
}
in above code(function right_configuration is called from somewherelse) whn i compile my gcc compiler give this warning
warning1: assignment from incompatible pointer type
warning2: assignment from incompatible pointer type
why i am getting these warning here? i am not able to identify..
plz guide me