summaryrefslogtreecommitdiff
path: root/usr.sbin/rad
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2021-02-27 10:35:21 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2021-02-27 10:35:21 +0000
commit23b4db207bdec76016ab5fae5b3b6e009045b6ad (patch)
tree2d5034fa699affd5146396342be3c52696bf9110 /usr.sbin/rad
parent08b6c592d984171748d22f01ddad3ecaa6f83ac0 (diff)
Path #defines are traditionally prefixed with _PATH.
Pointed out by deraadt
Diffstat (limited to 'usr.sbin/rad')
-rw-r--r--usr.sbin/rad/rad.c6
-rw-r--r--usr.sbin/rad/rad.h6
2 files changed, 6 insertions, 6 deletions
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 <florian@openbsd.org>
@@ -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 <florian@openbsd.org>
@@ -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