summaryrefslogtreecommitdiff
path: root/lib/prefix.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-12-21 12:54:58 +0300
committerDenis Ovsienko <infrastation@yandex.ru>2009-12-21 13:03:51 +0300
commit2d362d1099f346202cb628665ff4ae563b2594f5 (patch)
tree5e8101d4ace5f4ef4e51c1cdc277c0f9652728d0 /lib/prefix.c
parentda88ea82acd70adf3bab641b2300ee24319da422 (diff)
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
Diffstat (limited to 'lib/prefix.c')
-rw-r--r--lib/prefix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prefix.c b/lib/prefix.c
index 2afaa09c..c85e6594 100644
--- a/lib/prefix.c
+++ b/lib/prefix.c
@@ -29,7 +29,7 @@
#include "log.h"
/* Maskbit. */
-static u_char maskbit[] = {0x00, 0x80, 0xc0, 0xe0, 0xf0,
+static const u_char maskbit[] = {0x00, 0x80, 0xc0, 0xe0, 0xf0,
0xf8, 0xfc, 0xfe, 0xff};
/* Number of bits in prefix type. */