diff options
author | Thomas Graf <tgraf@suug.ch> | 2010-11-17 16:09:08 +0100 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2010-11-17 16:09:08 +0100 |
commit | cf5577d280b59411ff77da727812465a4a01f4d7 (patch) | |
tree | de94591e7ed2c73a306a33224c0da76125de9973 /lib/route/link.c | |
parent | 98ffedec040226169d66af210f8b580a41e4d201 (diff) | |
download | libnl-cf5577d280b59411ff77da727812465a4a01f4d7.tar.gz |
constify struct trans_tbl
Diffstat (limited to 'lib/route/link.c')
-rw-r--r-- | lib/route/link.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/route/link.c b/lib/route/link.c index 75b70c3..c583917 100644 --- a/lib/route/link.c +++ b/lib/route/link.c @@ -886,7 +886,7 @@ static int link_compare(struct nl_object *_a, struct nl_object *_b, return diff; } -static struct trans_tbl link_attrs[] = { +static const struct trans_tbl link_attrs[] = { __ADD(LINK_ATTR_MTU, mtu) __ADD(LINK_ATTR_LINK, link) __ADD(LINK_ATTR_TXQLEN, txqlen) @@ -1223,7 +1223,7 @@ int rtnl_link_name2i(struct nl_cache *cache, const char *name) * @{ */ -static struct trans_tbl link_flags[] = { +static const struct trans_tbl link_flags[] = { __ADD(IFF_LOOPBACK, loopback) __ADD(IFF_BROADCAST, broadcast) __ADD(IFF_POINTOPOINT, pointopoint) @@ -1263,7 +1263,7 @@ int rtnl_link_str2flags(const char *name) * @{ */ -static struct trans_tbl link_stats[] = { +static const struct trans_tbl link_stats[] = { __ADD(RTNL_LINK_RX_PACKETS, rx_packets) __ADD(RTNL_LINK_TX_PACKETS, tx_packets) __ADD(RTNL_LINK_RX_BYTES, rx_bytes) @@ -1340,7 +1340,7 @@ int rtnl_link_str2stat(const char *name) * @{ */ -static struct trans_tbl link_operstates[] = { +static const struct trans_tbl link_operstates[] = { __ADD(IF_OPER_UNKNOWN, unknown) __ADD(IF_OPER_NOTPRESENT, notpresent) __ADD(IF_OPER_DOWN, down) @@ -1369,7 +1369,7 @@ int rtnl_link_str2operstate(const char *name) * @{ */ -static struct trans_tbl link_modes[] = { +static const struct trans_tbl link_modes[] = { __ADD(IF_LINK_MODE_DEFAULT, default) __ADD(IF_LINK_MODE_DORMANT, dormant) }; |