]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Constify puts_tabular
authorTom Tromey <tom@tromey.com>
Thu, 8 Jan 2026 14:51:46 +0000 (07:51 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 20 Jan 2026 17:02:42 +0000 (10:02 -0700)
This changes puts_tabular to accept a 'const char *'.

Reviewed-By: Keith Seitz <keiths@redhat.com>
gdb/utils.c
gdb/utils.h

index 8c5f34b96875b54d6db0279a52bc939c1a10f1e2..92070481fe2e94d3aacace5b7457326db7a2d8a0 100644 (file)
@@ -1588,7 +1588,7 @@ pager_file::wrap_here (int indent)
    currently doesn't tabulate very well.  */
 
 void
-puts_tabular (char *string, int width, int right)
+puts_tabular (const char *string, int width, int right)
 {
   int spaces = 0;
   int stringlen;
index 531fae083d7a54076db22c0378227dac165fcbab..6d496b418e862bb760af2fedcf9fbb5cb3fe60d8 100644 (file)
@@ -208,7 +208,7 @@ extern void gdb_putc (int c);
 
 extern void gdb_puts (const char *);
 
-extern void puts_tabular (char *string, int width, int right);
+extern void puts_tabular (const char *string, int width, int right);
 
 /* Generic printf-like operations.  As an extension over plain
    printf, these support some GDB-specific format specifiers.