警告:指针类型不兼容?

ven*_*kat 2 c pthreads

嗨,我得到以下警告请帮助我.

从不兼容的指针类型传递'pthread_create'的参数3

我的代码是:

int function(int *);
int main()
{
         pthread_t thread_a;
pthread_create(&thread_a,NULL, function,&connected);
int function(int *fnd)

            {
                int bytes_recieved;;
}
Run Code Online (Sandbox Code Playgroud)

Ign*_*ams 5

function必须退货void *.有关pthread_create(3)更多详细信息,请参见手册页.