src/ui/gui/psppire-text-file.c (read_lines): Use const int instead of enum
[pspp] / src / ui / gui / psppire-text-file.c
index 7460104c504cb1f0115c49f58b77ba2351586154..ea74fefee373ffb49dba8369440c3db404eb13db 100644 (file)
@@ -41,11 +41,13 @@ enum
     PROP_LINE_COUNT
   };
 
-enum {MAX_LINE_LEN = 16384};  /* Max length of an acceptable line. */
 
 static void
 read_lines (PsppireTextFile *tf)
 {
+  /* Max length of an acceptable line. */
+  static const int MAX_LINE_LEN = 16384;
+
   if (tf->file_name && 0 != g_strcmp0 ("unset", tf->encoding))
     {
       struct line_reader *reader = line_reader_for_file (tf->encoding, tf->file_name, O_RDONLY);