| int sd2;
| if((sd2=accept(sd, (struct sockaddr*)&cad, &alen)) > 0) {
| pthread_create(&thread1, pthread_attr_default,
| serverstart, &sd2);
| }
|
| Then the serverstart function:
|
| void *serverstart(void *ptr)
| {
| int *sd2;
| sd2 = (int*)ptr;
|
| dowhatever(sd2);
| }
|
| Any ideas as to what I'm doing wrong? Also, thanks for your help.
|
| Rob
Try this.
void *serverstart(void *ptr)
{
int sd2;
sd2 = *((int *) ptr);
...
}
--
Dan Moschuk ([EMAIL PROTECTED])
"Cure for global warming: One giant heatsink and dual fans!"
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message