Sorry All,
The warning comes on the inner line of this function. The line is:
fprintf(stderr,
" } at %p size %d\n",sockets,((MAX_TCPCLIENTS)*(sizeof(int))));
The warning talks about argument 1, so there must be a problem with "sockets parameter", to let you people know sockets is an integer pointer: int* sockets this was sent to function as parameter.
Now whats the problem, can someone tell me? Is this sockets some differetn type from "%p" or what? Btw, what does %p means in fprintf()?