X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=18791cc8b16140c632538845bde3915da92bc969;hp=7118d1f3fd4694323f203fb1bbfae5364fbce2e9;hb=394ed3fb174bb629bfb4b441fe58842562f955de;hpb=3a6200c1e39b61b249db3d1f9bcffa77351863bd diff --git a/src/tincd.c b/src/tincd.c index 7118d1f3..18791cc8 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: tincd.c,v 1.10.4.32 2000/11/20 22:13:14 guus Exp $ + $Id: tincd.c,v 1.10.4.34 2000/11/22 19:14:09 guus Exp $ */ #include "config.h" @@ -94,11 +94,6 @@ char **g_argv; /* a copy of the cmdline arguments */ char **environment; /* A pointer to the environment on startup */ -void cleanup_and_exit(int); -int kill_other(void); -void make_names(void); -int write_pidfile(void); - static struct option const long_options[] = { { "config", required_argument, NULL, 'c' }, @@ -248,7 +243,7 @@ void make_names(void) if(netname) { if(!pidfilename) - asprintf(&pidfilename, "/var/run/tinc.%s.pid", netname); + asprintf(&pidfilename, LOCALSTATEDIR "/run/tinc.%s.pid", netname); if(!confbase) asprintf(&confbase, "%s/tinc/%s", CONFDIR, netname); else @@ -259,7 +254,7 @@ void make_names(void) else { if(!pidfilename) - pidfilename = "/var/run/tinc.pid"; + pidfilename = LOCALSTATEDIR "/run/tinc.pid"; if(!confbase) asprintf(&confbase, "%s/tinc", CONFDIR); if(!identname)