]> git.ozlabs.org Git - ppp.git/commitdiff
fixes for old C compilers and for Ultrix
authorPaul Mackerras <paulus@samba.org>
Thu, 26 Sep 1996 06:20:35 +0000 (06:20 +0000)
committerPaul Mackerras <paulus@samba.org>
Thu, 26 Sep 1996 06:20:35 +0000 (06:20 +0000)
pppd/auth.c

index ebdb8d35b65f45f489ece5b2233519384c31252c..0eb7566014c5360e9c702183b52f034e5083fd46 100644 (file)
@@ -33,7 +33,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: auth.c,v 1.26 1996/08/28 06:39:12 paulus Exp $";
+static char rcsid[] = "$Id: auth.c,v 1.27 1996/09/26 06:20:35 paulus Exp $";
 #endif
 
 #include <stdio.h>
@@ -54,7 +54,7 @@ static char rcsid[] = "$Id: auth.c,v 1.26 1996/08/28 06:39:12 paulus Exp $";
 #ifdef SVR4
 #include <crypt.h>
 #else
-#ifdef SUNOS4
+#if defined(SUNOS4) || defined(ULTRIX)
 extern char *crypt();
 #endif
 #endif
@@ -80,10 +80,6 @@ extern char *crypt();
 #include "chap.h"
 #include "pathnames.h"
 
-#if defined(sun) && defined(sparc)
-#include <alloca.h>
-#endif /*sparc*/
-
 /* Used for storing a sequence of words.  Usually malloced. */
 struct wordlist {
     struct wordlist    *next;
@@ -923,7 +919,8 @@ null_login(unit)
  * could be found.
  */
 static int
-get_pap_passwd(char *passwd)
+get_pap_passwd(passwd)
+    char *passwd;
 {
     char *filename;
     FILE *f;