(read_variable_to_value_map): Use max_warnings
authorBen Pfaff <blp@gnu.org>
Mon, 23 Jul 2007 05:07:23 +0000 (05:07 +0000)
committerBen Pfaff <blp@gnu.org>
Mon, 23 Jul 2007 05:07:23 +0000 (05:07 +0000)
local variable instead of literal 5.

src/data/ChangeLog
src/data/sys-file-reader.c

index 516447dbc81306282e0fdd72da9c6fc963000635..396ef1ca68fd0ab2f83d8d1a3053972260f2559c 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-22  Ben Pfaff  <blp@gnu.org>
+
+       * sys-file-reader.c (read_variable_to_value_map): Use max_warnings
+       local variable instead of literal 5.
+       
 2007-07-22  Ben Pfaff  <blp@gnu.org>
 
        Fix problems with uniqueness of short names in system files with
index 9a0c054c1889c23b2f63a1a5010effa61b77f2fc..7dfba894cba210aa1dc4e1dbbe3ff9adf6467a56 100644 (file)
@@ -1579,7 +1579,7 @@ read_variable_to_value_map (struct sfm_reader *r, struct dictionary *dict,
       *var = lookup_var_by_short_name (dict, ss_data (short_name_ss));
       if (*var == NULL)
         {
-          if (++*warning_cnt <= 5)
+          if (++*warning_cnt <= max_warnings)
             sys_warn (r, _("Variable map refers to unknown variable %s."),
                       ss_data (short_name_ss));
           continue;