[c] Getting "conflicting types for function" in C, why?