c - warning:incompatible pointer type? -


hi getting following warning pls me .

passing argument 3 of ‘pthread_create’ incompatible pointer type

my code is:

int function(int *); int main() {          pthread_t thread_a; pthread_create(&thread_a,null, function,&connected); int function(int *fnd)              {                 int bytes_recieved;; } 

function must return void *. see pthread_create(3) man page more details.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -