implementation of doubly linked list using list.h

I have created a basic linkedlist program, and debugged it, but one single error repeated thrice in three different function calls of the same function simply seems not to go away.
the error is in line containing list_entry fuction and it says: