public: constify xsd_errors[]
authorJan Beulich <jbeulich@suse.com>
Tue, 5 Jul 2022 11:11:51 +0000 (13:11 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 5 Jul 2022 11:11:51 +0000 (13:11 +0200)
While in principle this could break existing users, I think such users
deserve to be put in trouble. After all the table should have been const
from the very beginning.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
xen/include/public/io/xs_wire.h

index c573950fbf93a89237f4d19e0ba4dd4696e5eddf..05d3069e63ee7ac4c724e4ca8e5dba00dd937481 100644 (file)
@@ -71,7 +71,7 @@ struct xsd_errors
 #ifdef EINVAL
 #define XSD_ERROR(x) { x, #x }
 /* LINTED: static unused */
-static struct xsd_errors xsd_errors[]
+static const struct xsd_errors xsd_errors[]
 #if defined(__GNUC__)
 __attribute__((unused))
 #endif