Browse Source

don't need to setup the resolver early now that dns lookups are done

by the dns engine.
ok henning@
OPENBSD_4_8
eric 14 years ago
parent
commit
6f6b8fa1fb
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      src/usr.sbin/ntpd/ntpd.c

+ 1
- 3
src/usr.sbin/ntpd/ntpd.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: ntpd.c,v 1.67 2010/05/26 13:56:08 nicm Exp $ */
/* $OpenBSD: ntpd.c,v 1.68 2010/07/01 22:16:20 eric Exp $ */
/* /*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -23,7 +23,6 @@
#include <errno.h> #include <errno.h>
#include <poll.h> #include <poll.h>
#include <pwd.h> #include <pwd.h>
#include <resolv.h>
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -97,7 +96,6 @@ main(int argc, char *argv[])
bzero(&lconf, sizeof(lconf)); bzero(&lconf, sizeof(lconf));
log_init(1); /* log to stderr until daemonized */ log_init(1); /* log to stderr until daemonized */
res_init(); /* XXX */
while ((ch = getopt(argc, argv, "df:nsSv")) != -1) { while ((ch = getopt(argc, argv, "df:nsSv")) != -1) {
switch (ch) { switch (ch) {


Loading…
Cancel
Save