summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ccp.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-12-27 11:54:57 +0000
committerbrian <brian@FreeBSD.org>1999-12-27 11:54:57 +0000
commit5269dd341cd137829f110a77ccd91d1b7185549c (patch)
treec01a89bdfbb0afa81a443e52b0296428ffd91430 /usr.sbin/ppp/ccp.c
parent8d3683f53b3d5744a2026aa9b81196dd6a4a4a1b (diff)
downloadFreeBSD-src-5269dd341cd137829f110a77ccd91d1b7185549c.zip
FreeBSD-src-5269dd341cd137829f110a77ccd91d1b7185549c.tar.gz
Add a bunch of `const's and fix a typo.
Submitted by: Rich Neswold <rneswold@MCS.Net>
Diffstat (limited to 'usr.sbin/ppp/ccp.c')
-rw-r--r--usr.sbin/ppp/ccp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ccp.c b/usr.sbin/ppp/ccp.c
index a1b5e61..ce45a09 100644
--- a/usr.sbin/ppp/ccp.c
+++ b/usr.sbin/ppp/ccp.c
@@ -90,10 +90,10 @@ static struct fsm_callbacks ccp_Callbacks = {
CcpRecvResetAck
};
-static const char *ccp_TimerNames[] =
+static const char * const ccp_TimerNames[] =
{"CCP restart", "CCP openmode", "CCP stopped"};
-static char const *cftypes[] = {
+static char const * const cftypes[] = {
/* Check out the latest ``Compression Control Protocol'' rfc (rfc1962.txt) */
"OUI", /* 0: OUI */
"PRED1", /* 1: Predictor type 1 */
@@ -126,7 +126,7 @@ protoname(int proto)
}
/* We support these algorithms, and Req them in the given order */
-static const struct ccp_algorithm *algorithm[] = {
+static const struct ccp_algorithm * const algorithm[] = {
&DeflateAlgorithm,
&Pred1Algorithm,
&PppdDeflateAlgorithm
OpenPOWER on IntegriCloud