This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 01/13] output-file.[ch]: make a couple function arguments const
- From: tbsaunde+binutils at tbsaunde dot org
- To: binutils at sourceware dot org
- Date: Sun, 21 Feb 2016 21:02:01 -0500
- Subject: [PATCH 01/13] output-file.[ch]: make a couple function arguments const
- Authentication-results: sourceware.org; auth=none
- References: <1456106533-19089-1-git-send-email-tbsaunde+binutils at tbsaunde dot org>
From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
gas/ChangeLog:
2016-02-21 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* output-file.c (output_file_create): Make file name argument const.
(output_file_close): Likewise.
* output-file.h (output_file_create): Adjust.
(output_file_close): Likewise.
---
gas/output-file.c | 4 ++--
gas/output-file.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gas/output-file.c b/gas/output-file.c
index 41d767c..f2db85f 100644
--- a/gas/output-file.c
+++ b/gas/output-file.c
@@ -28,7 +28,7 @@
bfd *stdoutput;
void
-output_file_create (char *name)
+output_file_create (const char *name)
{
if (name[0] == '-' && name[1] == '\0')
as_fatal (_("can't open a bfd on stdout %s"), name);
@@ -50,7 +50,7 @@ output_file_create (char *name)
}
void
-output_file_close (char *filename)
+output_file_close (const char *filename)
{
bfd_boolean res;
diff --git a/gas/output-file.h b/gas/output-file.h
index 6c467a3..d4d32a2 100644
--- a/gas/output-file.h
+++ b/gas/output-file.h
@@ -19,7 +19,7 @@
the Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
void output_file_append (char *where, long length, char *filename);
-void output_file_close (char *filename);
-void output_file_create (char *name);
+void output_file_close (const char *filename);
+void output_file_create (const char *name);
/* end of output-file.h */
--
2.7.0