minicurses.h: portability: Casting non-zero decimal integer literal to pointer - sfeed - RSS and Atom parser
 (HTM) git clone git://git.codemadness.org/sfeed
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 3e854e2a0d57f90bf6f7482cecb2741043ccaa6b
 (DIR) parent 03b52640efbd9f8fdd2297740b1c79fa0a1a7652
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Thu, 13 Nov 2025 13:45:37 +0100
       
       minicurses.h: portability: Casting non-zero decimal integer literal to pointer
       
       Fixes cppcheck warning.
       
       Checked against NetBSD curses and ncurses:
       
       ncurses has: libcurses/term.h:#define eat_newline_glitch             CUR Booleans[4]
       
       NetBSD curses:
               #define t_eat_newline_glitch(t)            (t)->flags[TICODE_xenl]
               libterminfo/term.h:#define eat_newline_glitch         t_eat_newline_glitch(cur_term)
       
               where flags is of type: signed char *flags;
       
       So this type is different for minicurses, but should be fine for sfeed_curses.
       
       Diffstat:
         M minicurses.h                        |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/minicurses.h b/minicurses.h
       @@ -6,7 +6,7 @@ const char *clear_screen = "\x1b[H\x1b[2J";
        const char *cursor_address = "\x1b[%ld;%ldH";
        const char *cursor_normal = "\x1b[?25h"; /* DECTCEM (in)Visible cursor */
        const char *cursor_invisible = "\x1b[?25l"; /* DECTCEM (in)Visible cursor */
       -const char *eat_newline_glitch = (void *)1;
       +const int eat_newline_glitch = 1;
        const char *enter_ca_mode = "\x1b[?1049h"; /* smcup */
        const char *exit_ca_mode = "\x1b[?1049l"; /* rmcup */
        const char *save_cursor = "\x1b""7";