Change names of sock, PID file #defines
Change names of sock, PID file #defines in include/patty/daemon.h
This commit is contained in:
parent
a672b4e44a
commit
4fb64760b6
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue