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
Post a Comment