ast: constify argument
authorRan Benita <ran234@gmail.com>
Thu, 7 Feb 2013 22:02:49 +0000 (00:02 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Mon, 18 Mar 2013 22:20:02 +0000 (22:20 +0000)
Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/ast-build.c
src/xkbcomp/xkbcomp-priv.h

index a650b05..7259dc5 100644 (file)
@@ -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;
index b2b40fd..8b6f0f8 100644 (file)
@@ -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,