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; }