summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/filter.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/filter.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/filter.c')
-rw-r--r--usr.sbin/ppp/filter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/filter.c b/usr.sbin/ppp/filter.c
index 217c177..ade48a5 100644
--- a/usr.sbin/ppp/filter.c
+++ b/usr.sbin/ppp/filter.c
@@ -19,7 +19,7 @@
*
* $FreeBSD$
*
- * TODO: Shoud send ICMP error message when we discard packets.
+ * TODO: Should send ICMP error message when we discard packets.
*/
#include <sys/param.h>
@@ -533,7 +533,7 @@ filter_Set(struct cmdargs const *arg)
const char *
filter_Action2Nam(int act)
{
- static const char *actname[] = { " none ", "permit ", " deny " };
+ static const char * const actname[] = { " none ", "permit ", " deny " };
static char buf[8];
if (act >= 0 && act < MAXFILTERS) {
@@ -618,7 +618,7 @@ filter_Show(struct cmdargs const *arg)
return 0;
}
-static const char *protoname[] = {
+static const char * const protoname[] = {
"none", "tcp", "udp", "icmp", "ospf", "igmp", "gre"
};
@@ -645,7 +645,7 @@ filter_Nam2Proto(int argc, char const *const *argv)
return proto;
}
-static const char *opname[] = {"none", "eq", "gt", "lt"};
+static const char * const opname[] = {"none", "eq", "gt", "lt"};
const char *
filter_Op2Nam(int op)
OpenPOWER on IntegriCloud