summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-07-28 03:01:52 +0000
committerbrian <brian@FreeBSD.org>1999-07-28 03:01:52 +0000
commit5245387bb34fc563bc9be681fc8d82661b5fa0ce (patch)
treecd52ceebd10d7b7bbcf31fa465e1f0fd85f88db1 /usr.sbin/ppp
parent93b3dc59cda9b48f934a6b08933bb0fc5bc66e69 (diff)
downloadFreeBSD-src-5245387bb34fc563bc9be681fc8d82661b5fa0ce.zip
FreeBSD-src-5245387bb34fc563bc9be681fc8d82661b5fa0ce.tar.gz
Fix a load of typos
Use sizeof, not a hardcode value. Some of it submitted by: Peter Jeremy <jeremyp@gsmx07.alcatel.com.au>
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/filter.c4
-rw-r--r--usr.sbin/ppp/ppp.822
-rw-r--r--usr.sbin/ppp/ppp.8.m422
3 files changed, 24 insertions, 24 deletions
diff --git a/usr.sbin/ppp/filter.c b/usr.sbin/ppp/filter.c
index 08f9552..b9e129e 100644
--- a/usr.sbin/ppp/filter.c
+++ b/usr.sbin/ppp/filter.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: filter.c,v 1.31 1999/07/26 11:15:10 brian Exp $
+ * $Id: filter.c,v 1.32 1999/07/27 23:43:58 brian Exp $
*
* TODO: Shoud send ICMP error message when we discard packets.
*/
@@ -488,7 +488,7 @@ filter_Action2Nam(int act)
static char buf[8];
if (act >= 0 && act < MAXFILTERS) {
- snprintf(buf, 8, "%6d ", act);
+ snprintf(buf, sizeof buf, "%6d ", act);
return buf;
} else if (act >= A_NONE && act < A_NONE + sizeof(actname)/sizeof(char *))
return actname[act - A_NONE];
diff --git a/usr.sbin/ppp/ppp.8 b/usr.sbin/ppp/ppp.8
index c7924d1..21906a4 100644
--- a/usr.sbin/ppp/ppp.8
+++ b/usr.sbin/ppp/ppp.8
@@ -1,4 +1,4 @@
-.\" $Id: ppp.8,v 1.181 1999/07/27 13:47:59 brian Exp $
+.\" $Id: ppp.8,v 1.182 1999/07/27 23:44:00 brian Exp $
.Dd 20 September 1995
.nr XX \w'\fC00'
.Os FreeBSD
@@ -305,7 +305,7 @@ will read the
.Dq default
system from
.Pa /etc/ppp/ppp.conf
-at startup, followed by each of the systems specifed on the command line.
+at startup, followed by each of the systems specified on the command line.
.Pp
Only one of the
.Fl auto ,
@@ -758,7 +758,7 @@ which runs a script in the background after the connection is established
.Dq shell
and
.Dq bg
-commands below for a description of possible substition strings). Similarly,
+commands below for a description of possible substitution strings). Similarly,
when a connection is closed, the contents of the
.Pa /etc/ppp/ppp.linkdown
file are executed. Both of these files have the same format as
@@ -887,7 +887,7 @@ only after a successful connection is established. The default value for
.Ar inc
is zero.
.It Ar max
-is the maximun number of times
+is the maximum number of times
.Nm
should increment
.Ar secs .
@@ -1450,7 +1450,7 @@ the new rule number (rather than the next rule number).
.Pp
The
.Ar action
-may optionally be followed with an exclaimation mark
+may optionally be followed with an exclamation mark
.Pq Dq ! ,
telling
.Nm
@@ -2873,7 +2873,7 @@ must be of the same size.
.Pp
If
.Ar remoteIP
-is specified, only data comming from that IP number is redirected.
+is specified, only data coming from that IP number is redirected.
.Ar remotePort
must either be
.Dq 0
@@ -2882,7 +2882,7 @@ or a range of ports the same size as the other ranges.
.Pp
This option is useful if you wish to run things like Internet phone on
machines behind your gateway, but is limited in that connections to only
-one interior machine per souce machine and target port are possible.
+one interior machine per source machine and target port are possible.
.It alias pptp Op Ar addr
This tells
.Nm
@@ -3160,7 +3160,7 @@ much the same as running
.It iface help Op Ar sub-command
This command, when invoked without
.Ar sub-command ,
-will show a list of possbile
+will show a list of possible
.Dq iface
sub-commands and a brief synopsis for each. When invoked with
.Ar sub-command ,
@@ -4044,7 +4044,7 @@ not terminated and it is therefore invalid to specify
.Ar trmtries
for PAP or CHAP.
.Pp
-In order to avoid netogiations with the peer that will never converge,
+In order to avoid negotiations with the peer that will never converge,
.Nm
will only send at most 3 times the configured number of
.Ar reqtries
@@ -4472,7 +4472,7 @@ environment variable. Otherwise, the given
.Ar command
is executed. Word replacement is done in the same way as for the
.Dq !bg
-commanad as described above.
+command as described above.
.Pp
Use of the ! character
requires a following space as with any of the other commands. You should
@@ -4560,7 +4560,7 @@ and
.Dq show ?
to get online information about what's available.
.It
-The following urls contain useful information:
+The following URLs contain useful information:
.Bl -bullet -compact
.It
http://www.FreeBSD.org/FAQ/userppp.html
diff --git a/usr.sbin/ppp/ppp.8.m4 b/usr.sbin/ppp/ppp.8.m4
index c7924d1..21906a4 100644
--- a/usr.sbin/ppp/ppp.8.m4
+++ b/usr.sbin/ppp/ppp.8.m4
@@ -1,4 +1,4 @@
-.\" $Id: ppp.8,v 1.181 1999/07/27 13:47:59 brian Exp $
+.\" $Id: ppp.8,v 1.182 1999/07/27 23:44:00 brian Exp $
.Dd 20 September 1995
.nr XX \w'\fC00'
.Os FreeBSD
@@ -305,7 +305,7 @@ will read the
.Dq default
system from
.Pa /etc/ppp/ppp.conf
-at startup, followed by each of the systems specifed on the command line.
+at startup, followed by each of the systems specified on the command line.
.Pp
Only one of the
.Fl auto ,
@@ -758,7 +758,7 @@ which runs a script in the background after the connection is established
.Dq shell
and
.Dq bg
-commands below for a description of possible substition strings). Similarly,
+commands below for a description of possible substitution strings). Similarly,
when a connection is closed, the contents of the
.Pa /etc/ppp/ppp.linkdown
file are executed. Both of these files have the same format as
@@ -887,7 +887,7 @@ only after a successful connection is established. The default value for
.Ar inc
is zero.
.It Ar max
-is the maximun number of times
+is the maximum number of times
.Nm
should increment
.Ar secs .
@@ -1450,7 +1450,7 @@ the new rule number (rather than the next rule number).
.Pp
The
.Ar action
-may optionally be followed with an exclaimation mark
+may optionally be followed with an exclamation mark
.Pq Dq ! ,
telling
.Nm
@@ -2873,7 +2873,7 @@ must be of the same size.
.Pp
If
.Ar remoteIP
-is specified, only data comming from that IP number is redirected.
+is specified, only data coming from that IP number is redirected.
.Ar remotePort
must either be
.Dq 0
@@ -2882,7 +2882,7 @@ or a range of ports the same size as the other ranges.
.Pp
This option is useful if you wish to run things like Internet phone on
machines behind your gateway, but is limited in that connections to only
-one interior machine per souce machine and target port are possible.
+one interior machine per source machine and target port are possible.
.It alias pptp Op Ar addr
This tells
.Nm
@@ -3160,7 +3160,7 @@ much the same as running
.It iface help Op Ar sub-command
This command, when invoked without
.Ar sub-command ,
-will show a list of possbile
+will show a list of possible
.Dq iface
sub-commands and a brief synopsis for each. When invoked with
.Ar sub-command ,
@@ -4044,7 +4044,7 @@ not terminated and it is therefore invalid to specify
.Ar trmtries
for PAP or CHAP.
.Pp
-In order to avoid netogiations with the peer that will never converge,
+In order to avoid negotiations with the peer that will never converge,
.Nm
will only send at most 3 times the configured number of
.Ar reqtries
@@ -4472,7 +4472,7 @@ environment variable. Otherwise, the given
.Ar command
is executed. Word replacement is done in the same way as for the
.Dq !bg
-commanad as described above.
+command as described above.
.Pp
Use of the ! character
requires a following space as with any of the other commands. You should
@@ -4560,7 +4560,7 @@ and
.Dq show ?
to get online information about what's available.
.It
-The following urls contain useful information:
+The following URLs contain useful information:
.Bl -bullet -compact
.It
http://www.FreeBSD.org/FAQ/userppp.html
OpenPOWER on IntegriCloud