summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/main.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-01-27 23:14:53 +0000
committerbrian <brian@FreeBSD.org>1998-01-27 23:14:53 +0000
commit1c9a27b4647df90f102ed0e8ec6d5d59c7781503 (patch)
tree79af2c25904d86cedb68b369936b6cc1dacd8b91 /usr.sbin/ppp/main.c
parent83e933cd3850f7f20d75faff727b5d0b256cc5d1 (diff)
downloadFreeBSD-src-1c9a27b4647df90f102ed0e8ec6d5d59c7781503.zip
FreeBSD-src-1c9a27b4647df90f102ed0e8ec6d5d59c7781503.tar.gz
Cosmetic:
Don't mention the authors name at startup. He's already credited in the man page. Instead, make the message consistent with the one given to the diagnostic port (and fix the grammar when entering `term' mode). Don't credit the zlib author in the man page as ppp isn't linked directly with zlib (it's shared). Mention when the OpenBSD port was first made available.
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r--usr.sbin/ppp/main.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 0c9d89b..f2fba1c 100644
--- a/usr.sbin/ppp/main.c
+++ b/usr.sbin/ppp/main.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: main.c,v 1.118 1998/01/20 22:47:41 brian Exp $
+ * $Id: main.c,v 1.119 1998/01/21 02:15:20 brian Exp $
*
* TODO:
* o Add commands for traffic summary, version display, etc.
@@ -342,15 +342,6 @@ ProcessArgs(int argc, char **argv)
return argc == 1 ? *argv : NULL; /* Don't SetLabel yet ! */
}
-static void
-Greetings(void)
-{
- if (VarTerm) {
- fprintf(VarTerm, "User Process PPP. Written by Toshiharu OHNO.\n");
- fflush(VarTerm);
- }
-}
-
int
main(int argc, char **argv)
{
@@ -409,7 +400,7 @@ main(int argc, char **argv)
if (!GetShortHost())
return 1;
- Greetings();
+ IsInteractive(1);
IpcpDefAddress();
if (mode & MODE_INTER)
@@ -423,9 +414,7 @@ main(int argc, char **argv)
return EX_START;
}
CleanInterface(IfDevName);
- if (mode & MODE_INTER)
- fprintf(VarTerm, "Interactive mode\n");
- else if ((mode & MODE_OUTGOING_DAEMON) && !(mode & MODE_DEDICATED))
+ if ((mode & MODE_OUTGOING_DAEMON) && !(mode & MODE_DEDICATED))
if (label == NULL) {
if (VarTerm)
fprintf(VarTerm, "Destination system must be specified in"
@@ -1003,7 +992,6 @@ DoLoop(void)
netfd = wfd;
VarTerm = fdopen(netfd, "a+");
LocalAuthInit();
- Greetings();
IsInteractive(1);
Prompt();
}
OpenPOWER on IntegriCloud