Diff for /embedaddon/dnsmasq/src/log.c between versions 1.1.1.1 and 1.1.1.3

version 1.1.1.1, 2013/07/29 19:37:40 version 1.1.1.3, 2016/11/02 09:57:01
Line 1 Line 1
/* dnsmasq is Copyright (c) 2000-2013 Simon Kelley/* dnsmasq is Copyright (c) 2000-2016 Simon Kelley
   
    This program is free software; you can redistribute it and/or modify     This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
Line 421  void my_syslog(int priority, const char *format, ...) Line 421  void my_syslog(int priority, const char *format, ...)
     }       } 
 }  }
   
void set_log_writer(fd_set *set, int *maxfdp)void set_log_writer(void)
 {  {
   if (entries && log_fd != -1 && connection_good)    if (entries && log_fd != -1 && connection_good)
    {    poll_listen(log_fd, POLLOUT);
      FD_SET(log_fd, set); 
      bump_maxfd(log_fd, maxfdp); 
    } 
 }  }
   
void check_log_writer(fd_set *set)void check_log_writer(int force)
 {  {
  if (log_fd != -1 && (!set || FD_ISSET(log_fd, set)))  if (log_fd != -1 && (force || poll_check(log_fd, POLLOUT)))
     log_write();      log_write();
 }  }
   

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>