ref: 4df373aecb9d3d268cfe687383130c550f45d498
parent: 85273d52f9da40c5d770a8a4a010a9050a718b26
author: gkostka <kostka.grzegorz@gmail.com>
date: Thu Oct 8 14:43:14 EDT 2015
Move prefix table to .rodata section (and static keyword)
--- a/lwext4/ext4_xattr.c
+++ b/lwext4/ext4_xattr.c
@@ -814,7 +814,9 @@
struct xattr_prefix {
char *prefix;
uint8_t name_index;
-} prefix_tbl[] = {
+};
+
+static const struct xattr_prefix prefix_tbl[] = {
{"user.", EXT4_XATTR_INDEX_USER},
{"system.", EXT4_XATTR_INDEX_SYSTEM},
{"system.posix_acl_access", EXT4_XATTR_INDEX_POSIX_ACL_ACCESS},