Fix constness warnings 20130428010503/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 28 Apr 2013 07:34:43 +0000 (09:34 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 28 Apr 2013 07:34:43 +0000 (09:34 +0200)
src/language/data-io/list.c

index 90564e7a137c3d774ea3e1945674b08e05bb2bcd..4a9424d2f90d6488fc3e9ce6dadb4f5e973611d9 100644 (file)
@@ -59,7 +59,7 @@ struct lst_cmd
   int first;
   int last;
   int step;
-  struct variable **v_variables;
+  const struct variable **v_variables;
   size_t n_variables;
   enum numbering numbering;
 };
@@ -162,7 +162,7 @@ cmd_list (struct lexer *lexer, struct dataset *ds)
       if (lex_match_id (lexer, "VARIABLES") )
         {
           lex_match (lexer, T_EQUALS);
-          if (! parse_variables (lexer, dict, &cmd.v_variables, &cmd.n_variables, 0 ))
+          if (! parse_variables_const (lexer, dict, &cmd.v_variables, &cmd.n_variables, 0 ))
             {
               msg (SE, _("No variables specified."));
               return CMD_FAILURE;
@@ -213,7 +213,7 @@ cmd_list (struct lexer *lexer, struct dataset *ds)
               lex_get (lexer);
             }
         }
-      else if (! parse_variables (lexer, dict, &cmd.v_variables, &cmd.n_variables, 0 ))
+      else if (! parse_variables_const (lexer, dict, &cmd.v_variables, &cmd.n_variables, 0 ))
         {
           return CMD_FAILURE;
         }