From 5269dd341cd137829f110a77ccd91d1b7185549c Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 27 Dec 1999 11:54:57 +0000 Subject: Add a bunch of `const's and fix a typo. Submitted by: Rich Neswold --- usr.sbin/ppp/filter.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin/ppp/filter.c') 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 @@ -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) -- cgit v1.1