patch-interface_c 775 B

123456789101112131415161718192021222324
  1. $OpenBSD: patch-interface_c,v 1.1 2004/07/11 07:12:19 sturm Exp $
  2. --- interface.c.orig Sun Jul 11 09:02:56 2004
  3. +++ interface.c Sun Jul 11 09:04:02 2004
  4. @@ -224,8 +224,8 @@ interface_init(char *dev, int naddresses
  5. struct timeval tv = SS_POLL_INTERVAL;
  6. syslog(LOG_INFO, "switching to polling mode");
  7. - timeout_set(&inter->if_recvev, interface_poll_recv, inter);
  8. - timeout_add(&inter->if_recvev, &tv);
  9. + event_set(&inter->if_recvev, -1, 0, interface_poll_recv, inter);
  10. + event_add(&inter->if_recvev, &tv);
  11. }
  12. }
  13. @@ -354,7 +354,7 @@ interface_poll_recv(int fd, short type,
  14. struct interface *inter = arg;
  15. struct timeval tv = SS_POLL_INTERVAL;
  16. - timeout_add(&inter->if_recvev, &tv);
  17. + event_add(&inter->if_recvev, &tv);
  18. interface_recv(fd, type, arg);
  19. }