Skip to content

Commit

Permalink
TS-4971: Change TSPluginRegistration to be const.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan M. Carroll committed Oct 14, 2016
1 parent b329684 commit d36efa6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/ts/apidefs.h.in
Expand Up @@ -105,9 +105,9 @@ extern "C" {

*/
typedef struct {
char *plugin_name;
char *vendor_name;
char *support_email;
char const *plugin_name;
char const *vendor_name;
char const *support_email;
} TSPluginRegistrationInfo;

typedef struct {
Expand Down
2 changes: 1 addition & 1 deletion proxy/InkAPI.cc
Expand Up @@ -1805,7 +1805,7 @@ TSPluginDirGet(void)
////////////////////////////////////////////////////////////////////

TSReturnCode
TSPluginRegister(TSPluginRegistrationInfo *plugin_info)
TSPluginRegister(TSPluginRegistrationInfo const *plugin_info)
{
sdk_assert(sdk_sanity_check_null_ptr((void *)plugin_info) == TS_SUCCESS);

Expand Down
2 changes: 1 addition & 1 deletion proxy/api/ts/ts.h
Expand Up @@ -161,7 +161,7 @@ int TSTrafficServerVersionGetPatch(void);
@return TS_ERROR if the plugin registration failed.
*/
tsapi TSReturnCode TSPluginRegister(TSPluginRegistrationInfo *plugin_info);
tsapi TSReturnCode TSPluginRegister(TSPluginRegistrationInfo const *plugin_info);

/* --------------------------------------------------------------------------
Files */
Expand Down

0 comments on commit d36efa6

Please sign in to comment.