summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-05-23 22:54:06 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-05-23 22:54:06 +0000
commit38d24d3b457409054d4cea649b40faa6af21f357 (patch)
tree946ab1819cf7e8a40151f6ca60ccdf708e2a1e26
parent579265c709e2467c78fe201cd9688a3d7db28fb5 (diff)
useless use of endpwent
-rw-r--r--usr.sbin/ospfd/ospfd.c4
-rw-r--r--usr.sbin/ospfd/ospfe.c4
-rw-r--r--usr.sbin/ospfd/rde.c4
3 files changed, 3 insertions, 9 deletions
diff --git a/usr.sbin/ospfd/ospfd.c b/usr.sbin/ospfd/ospfd.c
index 51199770740..442b2bd5076 100644
--- a/usr.sbin/ospfd/ospfd.c
+++ b/usr.sbin/ospfd/ospfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfd.c,v 1.18 2005/04/25 09:28:45 claudio Exp $ */
+/* $OpenBSD: ospfd.c,v 1.19 2005/05/23 22:54:05 henning Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -158,8 +158,6 @@ main(int argc, char *argv[])
if (getpwnam(OSPFD_USER) == NULL)
errx(1, "unknown user %s", OSPFD_USER);
- endpwent();
-
if (!debug)
daemon(1, 0);
diff --git a/usr.sbin/ospfd/ospfe.c b/usr.sbin/ospfd/ospfe.c
index 2952929f5bb..cab7d223a4a 100644
--- a/usr.sbin/ospfd/ospfe.c
+++ b/usr.sbin/ospfd/ospfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfe.c,v 1.20 2005/05/12 19:10:12 norby Exp $ */
+/* $OpenBSD: ospfe.c,v 1.21 2005/05/23 22:54:05 henning Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -123,8 +123,6 @@ ospfe(struct ospfd_conf *xconf, int pipe_parent2ospfe[2], int pipe_ospfe2rde[2],
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
fatal("can't drop privileges");
- endpwent();
-
event_init();
nbr_init(NBR_HASHSIZE);
lsa_cache_init(LSA_HASHSIZE);
diff --git a/usr.sbin/ospfd/rde.c b/usr.sbin/ospfd/rde.c
index 209a96e1e26..1dc6a5a9e49 100644
--- a/usr.sbin/ospfd/rde.c
+++ b/usr.sbin/ospfd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.18 2005/05/22 17:49:26 norby Exp $ */
+/* $OpenBSD: rde.c,v 1.19 2005/05/23 22:54:05 henning Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -119,8 +119,6 @@ rde(struct ospfd_conf *xconf, int pipe_parent2rde[2], int pipe_ospfe2rde[2],
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
fatal("can't drop privileges");
- endpwent();
-
event_init();
rde_nbr_init(NBR_HASHSIZE);
lsa_init(&rdeconf->lsa_tree);