warning: passing arg 3 of `pthread_create' from incompatible ...
this is just something weird that I don't quite understand, maybe you can enlighten me. While trying to get rid of all the compiler warnings, I found this warning:
"warning: passing arg 3 of `pthread_create' from incompatible poin
It is generated by this line:
pthread_create(&unused_id, NULL, chat_stream, &clntsock);
The chat_stream function looks like this:
void chat_stream(int *newsock)
This actually works flawlessly, so why does it give me a warning? This is exactly how it's done in the example at http://www.cs.cf.ac.uk/Dave/C/node29.html (I think).