summaryrefslogtreecommitdiff
path: root/nest/rt-attr.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-08-17 13:36:36 +0200
committerMaria Matejka <mq@ucw.cz>2020-05-01 15:19:12 +0200
commit258be56539a3d4b47fe779f9658ca3d88761878d (patch)
treee90df2abf30e5b858aa7848e5ca147e316eb4d44 /nest/rt-attr.c
parenta7d9b8f116d00194e94c7505cbc8ed7f8784eeab (diff)
Nest: Added const to ea_show just to declare that this shouldn't really change anything
Diffstat (limited to 'nest/rt-attr.c')
-rw-r--r--nest/rt-attr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c
index 3f83edce..28d956bc 100644
--- a/nest/rt-attr.c
+++ b/nest/rt-attr.c
@@ -790,7 +790,7 @@ ea_free(ea_list *o)
}
static int
-get_generic_attr(eattr *a, byte **buf, int buflen UNUSED)
+get_generic_attr(const eattr *a, byte **buf, int buflen UNUSED)
{
if (a->id == EA_GEN_IGP_METRIC)
{
@@ -802,7 +802,7 @@ get_generic_attr(eattr *a, byte **buf, int buflen UNUSED)
}
void
-ea_format_bitfield(struct eattr *a, byte *buf, int bufsize, const char **names, int min, int max)
+ea_format_bitfield(const struct eattr *a, byte *buf, int bufsize, const char **names, int min, int max)
{
byte *bound = buf + bufsize - 32;
u32 data = a->u.data;
@@ -898,7 +898,7 @@ ea_show_lc_set(struct cli *c, const struct adata *ad, byte *pos, byte *buf, byte
* get_attr() hook, it's consulted first.
*/
void
-ea_show(struct cli *c, eattr *e)
+ea_show(struct cli *c, const eattr *e)
{
struct protocol *p;
int status = GA_UNKNOWN;