diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-02-25 23:55:41 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-02-25 23:55:41 +0000 |
commit | c4a33dacd4f63a3dbb4b56150444f7cddcf1cffe (patch) | |
tree | 7fafc2bb97a18c8a5c0b365cc8d7b2538351fd39 /usr.sbin | |
parent | 90ac2498e6afb3b107f91cc16a39e8fb0f1d860d (diff) |
use __progname instead of hardcoding bgpd for log_init
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/log.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/log.c b/usr.sbin/bgpd/log.c index d95f12043ce..c1696199fc2 100644 --- a/usr.sbin/bgpd/log.c +++ b/usr.sbin/bgpd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.27 2004/01/28 22:12:33 henning Exp $ */ +/* $OpenBSD: log.c,v 1.28 2004/02/25 23:55:40 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -125,10 +125,12 @@ log_fmt_peer(const struct peer_config *peer) void log_init(int n_debug) { + extern char *__progname; + debug = n_debug; if (!debug) - openlog("bgpd", LOG_PID | LOG_NDELAY, LOG_DAEMON); + openlog(__progname, LOG_PID | LOG_NDELAY, LOG_DAEMON); } void |