1. struct thread_args
{
2. int thread_id;
3. struct timeval before;
4. struct timeval after;
}
5. void * foobar(void *threadargs)
{
6. struct * mydata;
7. mydata = (struct thread_args *) threadargs;
8. gettimeofday(&mydata->before, NULL);
9. gettimeofday(mydata->before, NULL);
}
...
What's the difference between lines 8 and 9? The former compiles, the latter does not, but even though the first one compiles I'm not sure that it does what I want.