I have two functions in which one calls the other function and the title is the error I get. I am just wondering if there is a simple fix I am missing. Let me know if more information is needed. Thank you!
node createNode() {
newNode temp;//declare node
temp = (newNode)malloc(sizeof(struct node));//allocate memory
temp->next = NULL;//next point to null
return *temp;// return the new node
}
void enqueue(queue* q, customer* data) {
// Create a new LL node
struct node* temp = createNode(data);//error line