From 23b4db207bdec76016ab5fae5b3b6e009045b6ad Mon Sep 17 00:00:00 2001 From: Florian Obser Date: Sat, 27 Feb 2021 10:35:21 +0000 Subject: Path #defines are traditionally prefixed with _PATH. Pointed out by deraadt --- usr.sbin/rad/rad.c | 6 +++--- usr.sbin/rad/rad.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'usr.sbin/rad') diff --git a/usr.sbin/rad/rad.c b/usr.sbin/rad/rad.c index ad6d16adfe7..3bb4851bdb3 100644 --- a/usr.sbin/rad/rad.c +++ b/usr.sbin/rad/rad.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rad.c,v 1.26 2021/01/19 16:54:48 florian Exp $ */ +/* $OpenBSD: rad.c,v 1.27 2021/02/27 10:35:20 florian Exp $ */ /* * Copyright (c) 2018 Florian Obser @@ -133,8 +133,8 @@ main(int argc, char *argv[]) int control_fd; char *csock; - conffile = CONF_FILE; - csock = RAD_SOCKET; + conffile = _PATH_CONF_FILE; + csock = _PATH_RAD_SOCKET; log_init(1, LOG_DAEMON); /* Log to stderr until daemonized. */ log_setverbose(1); diff --git a/usr.sbin/rad/rad.h b/usr.sbin/rad/rad.h index fb6565bc6a6..d6fdaf5b325 100644 --- a/usr.sbin/rad/rad.h +++ b/usr.sbin/rad/rad.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rad.h,v 1.20 2021/01/19 16:53:27 florian Exp $ */ +/* $OpenBSD: rad.h,v 1.21 2021/02/27 10:35:20 florian Exp $ */ /* * Copyright (c) 2018 Florian Obser @@ -18,8 +18,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define CONF_FILE "/etc/rad.conf" -#define RAD_SOCKET "/var/run/rad.sock" +#define _PATH_CONF_FILE "/etc/rad.conf" +#define _PATH_RAD_SOCKET "/var/run/rad.sock" #define RAD_USER "_rad" #define OPT_VERBOSE 0x00000001 -- cgit v1.2.3