Portable build framework for OpenNTPD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB

  1. From be678b846a8bbeede06d66a630a64a19c589c45f Mon Sep 17 00:00:00 2001
  2. From: Brent Cook <busterb@gmail.com>
  3. Date: Tue, 30 Dec 2014 09:01:57 -0600
  4. Subject: [PATCH 03/16] remove unused dns_pid
  5. ---
  6. src/usr.sbin/ntpd/ntp.c | 4 ++--
  7. 1 file changed, 2 insertions(+), 2 deletions(-)
  8. diff --git a/src/usr.sbin/ntpd/ntp.c b/src/usr.sbin/ntpd/ntp.c
  9. index 2eb4285..ddbcedd 100644
  10. --- a/src/usr.sbin/ntpd/ntp.c
  11. +++ b/src/usr.sbin/ntpd/ntp.c
  12. @@ -79,7 +79,7 @@ ntp_main(int pipe_prnt[2], int fd_ctl, struct ntpd_conf *nconf,
  13. u_int pfd_elms = 0, idx2peer_elms = 0;
  14. u_int listener_cnt, new_cnt, sent_cnt, trial_cnt;
  15. u_int ctl_cnt;
  16. - pid_t pid, dns_pid;
  17. + pid_t pid;
  18. struct pollfd *pfd = NULL;
  19. struct servent *se;
  20. struct listen_addr *la;
  21. @@ -118,7 +118,7 @@ ntp_main(int pipe_prnt[2], int fd_ctl, struct ntpd_conf *nconf,
  22. close(pipe_prnt[0]);
  23. if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, pipe_dns) == -1)
  24. fatal("socketpair");
  25. - dns_pid = ntp_dns(pipe_dns, nconf, pw);
  26. + ntp_dns(pipe_dns, nconf, pw);
  27. close(pipe_dns[1]);
  28. if (stat(pw->pw_dir, &stb) == -1)
  29. --
  30. 1.9.1