From: bcook Date: Sun, 4 Jan 2015 01:16:10 +0000 (+0000) Subject: Remove the unused dns_pid variable. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=aece4353519f6e1f40638c4a80e88c2a1776f7a4;p=openbsd Remove the unused dns_pid variable. Nothing is done with the return value from ntp_dns, and it already calls fatal() on failure. ok deraadt@ --- diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c index 37326412e86..8b9ff63ee40 100644 --- a/usr.sbin/ntpd/ntp.c +++ b/usr.sbin/ntpd/ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp.c,v 1.121 2014/10/08 04:57:29 deraadt Exp $ */ +/* $OpenBSD: ntp.c,v 1.122 2015/01/04 01:16:10 bcook Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -79,7 +79,7 @@ ntp_main(int pipe_prnt[2], int fd_ctl, struct ntpd_conf *nconf, u_int pfd_elms = 0, idx2peer_elms = 0; u_int listener_cnt, new_cnt, sent_cnt, trial_cnt; u_int ctl_cnt; - pid_t pid, dns_pid; + pid_t pid; struct pollfd *pfd = NULL; struct servent *se; struct listen_addr *la; @@ -118,7 +118,7 @@ ntp_main(int pipe_prnt[2], int fd_ctl, struct ntpd_conf *nconf, close(pipe_prnt[0]); if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, pipe_dns) == -1) fatal("socketpair"); - dns_pid = ntp_dns(pipe_dns, nconf, pw); + ntp_dns(pipe_dns, nconf, pw); close(pipe_dns[1]); if (stat(pw->pw_dir, &stb) == -1)