summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/fsm.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/fsm.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/fsm.c')
-rw-r--r--usr.sbin/ppp/fsm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/fsm.c b/usr.sbin/ppp/fsm.c
index 8d97445..f1124b5 100644
--- a/usr.sbin/ppp/fsm.c
+++ b/usr.sbin/ppp/fsm.c
@@ -103,7 +103,7 @@ Code2Nam(u_int code)
const char *
State2Nam(u_int state)
{
- static const char *StateNames[] = {
+ static const char * const StateNames[] = {
"Initial", "Starting", "Closed", "Stopped", "Closing", "Stopping",
"Req-Sent", "Ack-Rcvd", "Ack-Sent", "Opened",
};
@@ -132,7 +132,7 @@ void
fsm_Init(struct fsm *fp, const char *name, u_short proto, int mincode,
int maxcode, int LogLevel, struct bundle *bundle,
struct link *l, const struct fsm_parent *parent,
- struct fsm_callbacks *fn, const char *timer_names[3])
+ struct fsm_callbacks *fn, const char * const timer_names[3])
{
fp->name = name;
fp->proto = proto;
OpenPOWER on IntegriCloud