]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - progs/tabs.c
ncurses 6.4 - patch 20230527
[ncurses.git] / progs / tabs.c
index 7378d116f70c8f48c90df1357a6aa49f036bd771..c852eb858f5c80d97db25c996f24369250c95acf 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright 2020-2021,2022 Thomas E. Dickey                                *
+ * Copyright 2020-2022,2023 Thomas E. Dickey                                *
  * Copyright 2008-2016,2017 Free Software Foundation, Inc.                  *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
@@ -39,7 +39,7 @@
 #include <progs.priv.h>
 #include <tty_settings.h>
 
-MODULE_ID("$Id: tabs.c,v 1.51 2022/02/26 22:44:44 tom Exp $")
+MODULE_ID("$Id: tabs.c,v 1.52 2023/05/27 20:13:10 tom Exp $")
 
 static GCC_NORETURN void usage(void);
 
@@ -183,7 +183,7 @@ decode_tabs(const char *tab_list, int margin)
 }
 
 static void
-print_ruler(int *tab_list, const char *new_line)
+print_ruler(const int *const tab_list, const char *new_line)
 {
     int last = 0;
     int n;
@@ -649,7 +649,7 @@ main(int argc, char *argv[])
            /* set tty modes to -ocrnl to allow \r */
            if (isatty(STDOUT_FILENO)) {
                TTY new_settings = tty_settings;
-               new_settings.c_oflag &= (unsigned)~OCRNL;
+               new_settings.c_oflag &= (unsigned) ~OCRNL;
                update_tty_settings(&tty_settings, &new_settings);
                change_tty = TRUE;
                new_line = "\r\n";