From 4fb64760b687edc6f9d31649af3617d03d246ce9 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 5 Oct 2020 14:18:23 -0400 Subject: [PATCH] Change names of sock, PID file #defines Change names of sock, PID file #defines in include/patty/daemon.h --- include/patty/daemon.h | 4 ++-- src/daemon.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/patty/daemon.h b/include/patty/daemon.h index 2fb37e9..e59c2af 100644 --- a/include/patty/daemon.h +++ b/include/patty/daemon.h @@ -1,8 +1,8 @@ #ifndef _PATTY_DAEMON_H #define _PATTY_DAEMON_H -#define PATTY_AX25_DAEMON_SOCK_PATH "/var/run/patty/patty.sock" -#define PATTY_AX25_DAEMON_PIDFILE "/var/run/patty/patty.pid" +#define PATTY_DAEMON_DEFAULT_SOCK "/var/run/patty/patty.sock" +#define PATTY_DAEMON_DEFAULT_PIDFILE "/var/run/patty/patty.pid" typedef struct _patty_daemon patty_daemon; diff --git a/src/daemon.c b/src/daemon.c index 14045ca..fdde901 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -21,11 +21,11 @@ patty_daemon *patty_daemon_new() { memset(daemon, '\0', sizeof(*daemon)); - if (patty_daemon_set_sock_path(daemon, PATTY_AX25_DAEMON_SOCK_PATH) < 0) { + if (patty_daemon_set_sock_path(daemon, PATTY_DAEMON_DEFAULT_SOCK) < 0) { goto error_set_sock_path; } - if (patty_daemon_set_pidfile(daemon, PATTY_AX25_DAEMON_PIDFILE) < 0) { + if (patty_daemon_set_pidfile(daemon, PATTY_DAEMON_DEFAULT_PIDFILE) < 0) { goto error_set_pidfile; }