summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/timer.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/timer.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/timer.c')
-rw-r--r--usr.sbin/ppp/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/timer.c b/usr.sbin/ppp/timer.c
index 7a7d592..144c306 100644
--- a/usr.sbin/ppp/timer.c
+++ b/usr.sbin/ppp/timer.c
@@ -42,7 +42,7 @@ static void StopTimerNoBlock(struct pppTimer *);
static const char *
tState2Nam(u_int state)
{
- static const char *StateNames[] = { "stopped", "running", "expired" };
+ static const char * const StateNames[] = { "stopped", "running", "expired" };
if (state >= sizeof StateNames / sizeof StateNames[0])
return "unknown";
OpenPOWER on IntegriCloud