MXS-1220: Make the parameters of the diagnostic entry points const

The diagnostic entry points should not modify the state of the object
being diagnosed.
This commit is contained in:
Markus Mäkelä
2017-04-19 21:56:05 +03:00
committed by Markus Mäkelä
parent c17c451fb5
commit 076599ee5e
45 changed files with 78 additions and 78 deletions

View File

@ -58,7 +58,7 @@ static int mysql_auth_set_client_data(
MySQLProtocol *protocol,
GWBUF *buffer);
json_t* mysql_auth_diagnostic(SERV_LISTENER *port);
json_t* mysql_auth_diagnostic(const SERV_LISTENER *port);
int mysql_auth_reauthenticate(DCB *dcb, const char *user,
uint8_t *token, size_t token_len,
@ -691,7 +691,7 @@ int diag_cb(void *data, int columns, char **row, char **field_names)
return 0;
}
json_t* mysql_auth_diagnostic(SERV_LISTENER *port)
json_t* mysql_auth_diagnostic(const SERV_LISTENER *port)
{
json_t* rval = json_array();