gold/ChangeLog:

* plugin.cc (ld_plugin_message): Change format parameter to const.
	Fix mismatch between new[] and delete.

include/ChangeLog:

	* plugin-api.h (ld_plugin_message): Change format parameter to const.
This commit is contained in:
Cary Coutant 2008-12-01 19:50:49 +00:00
parent 54e01333f7
commit 15bb3d1e84
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-12-01 Cary Coutant <ccoutant@google.com>
* plugin-api.h (ld_plugin_message): Change format parameter to const.
2008-12-01 Cary Coutant <ccoutant@google.com> 2008-12-01 Cary Coutant <ccoutant@google.com>
* plugin-api.h: Fix syntax error when compiling with C++. * plugin-api.h: Fix syntax error when compiling with C++.

View File

@ -182,7 +182,7 @@ enum ld_plugin_status
typedef typedef
enum ld_plugin_status enum ld_plugin_status
(*ld_plugin_message) (int level, char *format, ...); (*ld_plugin_message) (int level, const char *format, ...);
enum ld_plugin_level enum ld_plugin_level
{ {