This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 6/6] app.c: constify out_string
- From: tbsaunde+binutils at tbsaunde dot org
- To: binutils at sourceware dot org
- Date: Tue, 16 Feb 2016 22:54:22 -0500
- Subject: [PATCH 6/6] app.c: constify out_string
- Authentication-results: sourceware.org; auth=none
- References: <1455681262-11896-1-git-send-email-tbsaunde+binutils at tbsaunde dot org>
From: Trevor Saunders <tbsaunde@tbsaunde.org>
gas/ChangeLog:
2016-02-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* app.c (out_string): Change type to const char *.
(struct app_save::out_string): Likewise.
---
gas/app.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gas/app.c b/gas/app.c
index 3f93f0e..5c488dc 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -211,7 +211,7 @@ do_scrub_begin (int m68k_mri ATTRIBUTE_UNUSED)
/* Saved state of the scrubber. */
static int state;
static int old_state;
-static char *out_string;
+static const char *out_string;
static char out_buf[20];
static int add_newlines;
static char *saved_input;
@@ -229,7 +229,7 @@ struct app_save
{
int state;
int old_state;
- char * out_string;
+ const char * out_string;
char out_buf[sizeof (out_buf)];
int add_newlines;
char * saved_input;
--
2.7.0