From f814726c9e2aecebf9f7da423f6990263b3dedf9 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 3 Oct 2020 07:34:10 +0200 Subject: [PATCH] src/ui/gui/psppire-text-file.c (read_lines): Use const int instead of enum --- src/ui/gui/psppire-text-file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/gui/psppire-text-file.c b/src/ui/gui/psppire-text-file.c index 7460104c50..ea74fefee3 100644 --- a/src/ui/gui/psppire-text-file.c +++ b/src/ui/gui/psppire-text-file.c @@ -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); -- 2.30.2