Patchwork [linker,plugin-api] Add const to the add_input_file and add_input_library callbacks

login
register
mail settings
Submitter Rafael Espindola
Date June 18, 2010, 4:47 p.m.
Message ID <AANLkTikXM-iphouGP57X6OnlCX6IzvM5n5dD3jYOzM9A@mail.gmail.com>
Download mbox | patch
Permalink /patch/56208/
State New
Headers show

Comments

Rafael Espindola - June 18, 2010, 4:47 p.m.
I committed the attached patch. It was approved by Ian in the binutils
mailing list.

2010-06-18  Rafael Espindola  <espindola@google.com>

       * plugin.h (ld_plugin_add_input_file, ld_plugin_add_input_library):
       Make argument const.

Cheers,

Patch

diff --git a/include/ChangeLog b/include/ChangeLog
index a879adb..6b8053f 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@ 
+2010-06-18  Rafael Espindola  <espindola@google.com>
+
+	* plugin.h (ld_plugin_add_input_file, ld_plugin_add_input_library):
+	Make argument const.
+
 2010-06-08  Tristan Gingold  <gingold@adacore.com>
 
 	* dwarf2.h (enum dwarf_tag): Add DW_TAG_HP_Bliss_field and
diff --git a/include/plugin-api.h b/include/plugin-api.h
index 5821785..55cfe25 100644
--- a/include/plugin-api.h
+++ b/include/plugin-api.h
@@ -220,13 +220,13 @@  enum ld_plugin_status
 
 typedef
 enum ld_plugin_status
-(*ld_plugin_add_input_file) (char *pathname);
+(*ld_plugin_add_input_file) (const char *pathname);
 
 /* The linker's interface for adding a library that should be searched.  */
 
 typedef
 enum ld_plugin_status
-(*ld_plugin_add_input_library) (char *libname);
+(*ld_plugin_add_input_library) (const char *libname);
 
 /* The linker's interface for issuing a warning or error message.  */