From 2d362d1099f346202cb628665ff4ae563b2594f5 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 21 Dec 2009 12:54:58 +0300 Subject: lib: make some structures constant * isisd/isis_pdu.c * maskbit: this pre-initialized array is not modified * lib/prefix.c * maskbit: idem * lib/command.c * facility_map: idem * itoa64: idem * default_motd: make local var static * facility_name(): update local var accordingly * facility_match(): idem --- isisd/isis_pdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'isisd') diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c index 4311a905..a2ab0649 100644 --- a/isisd/isis_pdu.c +++ b/isisd/isis_pdu.c @@ -64,7 +64,7 @@ extern struct isis *isis; #endif /* PNBBY */ /* Utility mask array. */ -static u_char maskbit[] = { +static const u_char maskbit[] = { 0x00, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xff }; -- cgit v1.2.1