]> git.ozlabs.org Git - ppp.git/commitdiff
Use _PATH_VARRUN from pathnames.h instead of _PATH_PIDFILE
authorPaul Mackerras <paulus@samba.org>
Thu, 1 Sep 1994 00:32:24 +0000 (00:32 +0000)
committerPaul Mackerras <paulus@samba.org>
Thu, 1 Sep 1994 00:32:24 +0000 (00:32 +0000)
pppd/main.c

index 37aeaeca9629e79d617ad29f2b1c9bb6ae713821..4d165732096eb647ca707c091c630c1576cac4af 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: main.c,v 1.17 1994/09/01 00:28:14 paulus Exp $";
+static char rcsid[] = "$Id: main.c,v 1.18 1994/09/01 00:32:24 paulus Exp $";
 #endif
 
 #include <stdio.h>
@@ -59,8 +59,6 @@ static char rcsid[] = "$Id: main.c,v 1.17 1994/09/01 00:28:14 paulus Exp $";
 #define REQ_SYSOPTIONS 1
 #endif
 
-static char *pidpath = _PATH_PIDFILE;
-
 /* interface vars */
 char ifname[IFNAMSIZ];         /* Interface name */
 int ifunit;                    /* Interface unit number */
@@ -311,7 +309,7 @@ main(argc, argv)
        (void) sprintf(ifname, "ppp%d", ifunit);
 
        /* write pid to file */
-       (void) sprintf(pidfilename, "%s/%s.pid", pidpath, ifname);
+       (void) sprintf(pidfilename, "%s%s.pid", _PATH_VARRUN, ifname);
        if ((pidfile = fopen(pidfilename, "w")) != NULL) {
            fprintf(pidfile, "%d\n", pid);
            (void) fclose(pidfile);