ast: constify argument Signed-off-by: Ran Benita <ran234@gmail.com>
diff --git a/src/xkbcomp/ast-build.c b/src/xkbcomp/ast-build.c
index a650b05..7259dc5 100644
--- a/src/xkbcomp/ast-build.c
+++ b/src/xkbcomp/ast-build.c
@@ -501,7 +501,7 @@ XkbFileCreate(struct xkb_context *ctx, enum xkb_file_type type, char *name,
XkbFile *
XkbFileFromComponents(struct xkb_context *ctx,
- struct xkb_component_names *kkctgs)
+ const struct xkb_component_names *kkctgs)
{
IncludeStmt *inc;
XkbFile *keycodes, *types, *compat, *symbols;
diff --git a/src/xkbcomp/xkbcomp-priv.h b/src/xkbcomp/xkbcomp-priv.h
index b2b40fd..8b6f0f8 100644
--- a/src/xkbcomp/xkbcomp-priv.h
+++ b/src/xkbcomp/xkbcomp-priv.h
@@ -50,7 +50,7 @@ FreeXkbFile(XkbFile *file);
XkbFile *
XkbFileFromComponents(struct xkb_context *ctx,
- struct xkb_component_names *kkctgs);
+ const struct xkb_component_names *kkctgs);
bool
CompileKeycodes(XkbFile *file, struct xkb_keymap *keymap,