MXS-1220: Make server JSON functions const correct
The functions now take const parameters. Also fixed a memory leak.
This commit is contained in:

committed by
Markus Mäkelä

parent
caf2172677
commit
13cba2cb75
@ -273,7 +273,7 @@ bool server_is_mxs_service(const SERVER *server);
|
||||
*
|
||||
* @return JSON representation of server or NULL if an error occurred
|
||||
*/
|
||||
json_t* server_to_json(SERVER* server);
|
||||
json_t* server_to_json(const SERVER* server);
|
||||
|
||||
/**
|
||||
* @brief Convert all servers into JSON format
|
||||
|
Reference in New Issue
Block a user