summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-12-22 11:04:13 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-12-22 11:04:13 +0000
commitf37136c04667a65088522d00d57a167e7dceb5ba (patch)
tree761e236fe19ced5e79eaa73f48dd9c00cd872e84 /usr.sbin/bgpd/bgpd.c
parent5fb4459ba5d31ff5128ee8407b2605120056f905 (diff)
in the same vein we can plain errx() if the geteuid check fails.
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
-rw-r--r--usr.sbin/bgpd/bgpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index 2a98f4deabd..091b24fdf67 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.13 2003/12/22 11:00:19 henning Exp $ */
+/* $OpenBSD: bgpd.c,v 1.14 2003/12/22 11:04:12 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -105,7 +105,7 @@ main(int argc, char *argv[])
log_init(1); /* log to stderr until daemonized */
if (geteuid())
- fatal("need root privileges", 0);
+ errx(1, "need root privileges");
bzero(&conf, sizeof(conf));
bzero(&mrtconf, sizeof(mrtconf));