Change names of sock, PID file #defines

Change names of sock, PID file #defines in include/patty/daemon.h
This commit is contained in:
XANTRONIX Development 2020-10-05 14:18:23 -04:00 committed by XANTRONIX Industrial
parent a672b4e44a
commit 4fb64760b6
2 changed files with 4 additions and 4 deletions

View file

@ -1,8 +1,8 @@
#ifndef _PATTY_DAEMON_H #ifndef _PATTY_DAEMON_H
#define _PATTY_DAEMON_H #define _PATTY_DAEMON_H
#define PATTY_AX25_DAEMON_SOCK_PATH "/var/run/patty/patty.sock" #define PATTY_DAEMON_DEFAULT_SOCK "/var/run/patty/patty.sock"
#define PATTY_AX25_DAEMON_PIDFILE "/var/run/patty/patty.pid" #define PATTY_DAEMON_DEFAULT_PIDFILE "/var/run/patty/patty.pid"
typedef struct _patty_daemon patty_daemon; typedef struct _patty_daemon patty_daemon;

View file

@ -21,11 +21,11 @@ patty_daemon *patty_daemon_new() {
memset(daemon, '\0', sizeof(*daemon)); 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; 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; goto error_set_pidfile;
} }