33 lines
902 B
Text
33 lines
902 B
Text
$NetBSD: patch-ac,v 1.4 2012/02/16 17:32:45 hans Exp $
|
|
|
|
--- incoming/ppp.c.orig 1996-09-10 00:35:12.000000000 +0000
|
|
+++ incoming/ppp.c 2007-10-10 16:49:36.000000000 +0000
|
|
@@ -46,8 +46,8 @@ static char copyright[] =
|
|
#include "mcap.h"
|
|
#include <sys/time.h>
|
|
#include <signal.h>
|
|
-
|
|
-#define EOF -1
|
|
+#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
|
|
void ppp_detect (tty, ttyName)
|
|
int tty;
|
|
@@ -79,7 +79,7 @@ void ppp_detect (tty, ttyName)
|
|
modemcap.luser = "ppp";
|
|
modemcap.program = modemcap.ppp_prog;
|
|
modemcap.logstderr = 1;
|
|
- setlogin (ttyName);
|
|
+ SETLOGIN (ttyName);
|
|
return;
|
|
}
|
|
else
|
|
@@ -125,7 +125,7 @@ void ppp_detect (tty, ttyName)
|
|
if (!lbuf)
|
|
error ("Can't allocate space for login string.\n");
|
|
strcpy (lbuf, modemcap.program);
|
|
- strcat (lbuf, " ");
|
|
+ strcat (lbuf, " -- ");
|
|
strcat (lbuf, (char *)ibuf);
|
|
modemcap.program = lbuf;
|
|
return;
|