Browse Source

no we don't need endpwent

i remember we already had the confusion and bgpd doesn't have the endpwent
OPENBSD_4_6
henning 15 years ago
parent
commit
847353da0b
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.64 2009/02/10 16:52:09 stevesk Exp $ */
/* $OpenBSD: ntpd.c,v 1.65 2009/06/01 23:21:09 henning Exp $ */
/* /*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -144,8 +144,6 @@ main(int argc, char *argv[])
if ((pw = getpwnam(NTPD_USER)) == NULL) if ((pw = getpwnam(NTPD_USER)) == NULL)
errx(1, "unknown user %s", NTPD_USER); errx(1, "unknown user %s", NTPD_USER);
endpwent();
reset_adjtime(); reset_adjtime();
if (!lconf.settime) { if (!lconf.settime) {
log_init(lconf.debug); log_init(lconf.debug);


Loading…
Cancel
Save