Following code works fine in a different module but using it in my current code casues an error message as following:
error: conflicting types for 'first_item'
Why is there a conflict when struct has the same type?!
struct account* next;
//following lines are used out of main
struct account *first_item;
struct account *current_item;
struct account *new_item;
first_item = (struct account *)malloc(sizeof(struct account)); <<<< causes error here
current_item = first_item;