WARNING : passing `int' to argument 1 of `deleteQueue(itemType *, queue *)' lacks a cast
What is the meaning for this warning?
Where I should coorect in my code?
void Print(queue *q)
{
int j;
if ((q->tail-q->head) >=5)
{
for(j = 0;j < 5;j++)
{
printf("\nDocument %d printing now",q->items[q->head]);
deleteQueue(q->items[q->head],q);
}
}
return;
}
void deleteQueue(itemType *nItem,queue *q)
{
printf(" Inside deleteQueue -> head : %d\n ", q->head);
q->head = (q->head + 1);
return;
}
This post has been edited by lavender: 21 March 2007 - 01:33 AM

New Topic/Question
Reply




MultiQuote





|