I have a funktion in a linux program Iam porting to a Mac OS X driver
i cant get it to work.... iam missing something ?
The linux code is:
int
timer_expired(void)
{
struct bc_timer *bct;
int i;
struct timeval tn;
(void)gettimeofday(&tn, NULL);
for (i = 0; i < timer_max; i++) {
bct = timer_list[i];
if (bct) {
if ((bct->tv.tv_sec <= tn.tv_sec) && (bct->tv.tv_usec <=
tn.tv_usec)) {
timer_list[i] = NULL;
(bct->function)(bct->data);
}
}
}
return 1;
}
Thanks all..:-)
Yours
Thomas Nielsen
Denmark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden