plz explain how to do this the proper way.
main.c
=====
struct names{ // definitions
-----
----
----
}
struct names x;
function1(&x);
file2.c
======
function1(struct names *x){
----
----
----
}
am getting warning: 'struct names' declared inside parameter list