From e0daf9a73f3413afdf1a2363964e4201a638049c Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 27 Feb 2021 10:35:20 +0000 Subject: [PATCH] Path #defines are traditionally prefixed with _PATH. Pointed out by deraadt --- usr.sbin/ractl/ractl.c | 4 ++-- usr.sbin/rad/rad.c | 6 +++--- usr.sbin/rad/rad.h | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/usr.sbin/ractl/ractl.c b/usr.sbin/ractl/ractl.c index e3e0219ab0c..39fefa4b8c3 100644 --- a/usr.sbin/ractl/ractl.c +++ b/usr.sbin/ractl/ractl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ractl.c,v 1.2 2019/11/01 18:15:28 florian Exp $ */ +/* $OpenBSD: ractl.c,v 1.3 2021/02/27 10:35:20 florian Exp $ */ /* * Copyright (c) 2005 Claudio Jeker @@ -67,7 +67,7 @@ main(int argc, char *argv[]) int ch; char *sockname; - sockname = RAD_SOCKET; + sockname = _PATH_RAD_SOCKET; while ((ch = getopt(argc, argv, "s:")) != -1) { switch (ch) { case 's': 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 -- 2.20.1