[PATCH 01/13] output-file.[ch]: make a couple function arguments const
tbsaunde+binutils@tbsaunde.org
tbsaunde+binutils@tbsaunde.org
Mon Feb 22 12:28:00 GMT 2016
More information about the Binutils mailing list
Mon Feb 22 12:28:00 GMT 2016
- Previous message (by thread): [PATCH 09/13] input-scrub: make some file name arguments const
- Next message (by thread): [PATCH 06/13] make various variables in gas const
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [PATCH 09/13] input-scrub: make some file name arguments const
- Next message (by thread): [PATCH 06/13] make various variables in gas const
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list