aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/ipcp.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1999-12-27 11:54:57 +0000
committerBrian Somers <brian@FreeBSD.org>1999-12-27 11:54:57 +0000
commit182c898a22f7c1d2ff8a1cf8e123e079ea549e80 (patch)
tree0fd8c5842f6a904e51d96744a667232930c5fc7d /usr.sbin/ppp/ipcp.c
parent5b78bdf8aaee25d85b587df12983b3764cb47977 (diff)
downloadsrc-182c898a22f7c1d2ff8a1cf8e123e079ea549e80.tar.gz
src-182c898a22f7c1d2ff8a1cf8e123e079ea549e80.zip
Add a bunch of `const's and fix a typo.
Submitted by: Rich Neswold <rneswold@MCS.Net>
Notes
Notes: svn path=/head/; revision=55146
Diffstat (limited to 'usr.sbin/ppp/ipcp.c')
-rw-r--r--usr.sbin/ppp/ipcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c
index ba2473fec197..917d5778ebab 100644
--- a/usr.sbin/ppp/ipcp.c
+++ b/usr.sbin/ppp/ipcp.c
@@ -208,7 +208,7 @@ static struct fsm_callbacks ipcp_Callbacks = {
fsm_NullRecvResetAck
};
-static const char *cftypes[] = {
+static const char * const cftypes[] = {
/* Check out the latest ``Assigned numbers'' rfc (rfc1700.txt) */
"???",
"IPADDRS", /* 1: IP-Addresses */ /* deprecated */
@@ -218,7 +218,7 @@ static const char *cftypes[] = {
#define NCFTYPES (sizeof cftypes/sizeof cftypes[0])
-static const char *cftypes128[] = {
+static const char * const cftypes128[] = {
/* Check out the latest ``Assigned numbers'' rfc (rfc1700.txt) */
"???",
"PRIDNS", /* 129: Primary DNS Server Address */
@@ -463,7 +463,7 @@ ipcp_Init(struct ipcp *ipcp, struct bundle *bundle, struct link *l,
{
struct hostent *hp;
char name[MAXHOSTNAMELEN];
- static const char *timer_names[] =
+ static const char * const timer_names[] =
{"IPCP restart", "IPCP openmode", "IPCP stopped"};
fsm_Init(&ipcp->fsm, "IPCP", PROTO_IPCP, 1, IPCP_MAXCODE, LogIPCP,