tools: ynl: make user space policies const
authorJakub Kicinski <kuba@kernel.org>
Wed, 5 Jun 2024 17:16:44 +0000 (10:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Jun 2024 14:51:40 +0000 (15:51 +0100)
commit924ee531754827bf23eacf35e6408a7f44fb9021
tree8beb1ac730a80310ab7ff2e0b49ed6abaf4f92bf
parent3e61103b2f7887af0be402a79b9c70425ceba3e3
tools: ynl: make user space policies const

Dan, who's working on C++ YNL, pointed out that the C code
does not make policies const. Sprinkle some 'const's around.

Reported-by: Dan Melnic <dmm@meta.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/net/ynl/lib/ynl-priv.h
tools/net/ynl/lib/ynl.c
tools/net/ynl/lib/ynl.h
tools/net/ynl/ynl-gen-c.py