From 688508f634e1b60d1deaa3677fd6abfb95c8319d Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Thu, 5 Nov 2020 11:53:00 +0000 Subject: Kill bgpd_process, nothing uses it anymore. Instead pass the process type directly to log init. One less common in bgpd. OK benno@ --- usr.sbin/bgpd/rde.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.sbin/bgpd/rde.c') diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 8507ea657cb..434984c3a11 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.504 2020/11/05 11:51:13 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.505 2020/11/05 11:52:59 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -157,8 +157,7 @@ rde_main(int debug, int verbose) log_init(debug, LOG_DAEMON); log_setverbose(verbose); - bgpd_process = PROC_RDE; - log_procinit(log_procnames[bgpd_process]); + log_procinit(log_procnames[PROC_RDE]); if ((pw = getpwnam(BGPD_USER)) == NULL) fatal("getpwnam"); -- cgit v1.2.3