From: John Darrington Date: Sat, 3 Oct 2020 05:34:10 +0000 (+0200) Subject: src/ui/gui/psppire-text-file.c (read_lines): Use const int instead of enum X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f814726c9e2aecebf9f7da423f6990263b3dedf9;p=pspp src/ui/gui/psppire-text-file.c (read_lines): Use const int instead of enum --- 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);