From 280c834c49284eb0e5f284e1f24453dbeb0c8a79 Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Fri, 30 Oct 2015 14:06:16 +0100 Subject: MNDR: - rename the macro for updating the connection state --- ext/mysqlnd/mysqlnd_priv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/mysqlnd/mysqlnd_priv.h') diff --git a/ext/mysqlnd/mysqlnd_priv.h b/ext/mysqlnd/mysqlnd_priv.h index f5e05d41d4..d9583b4be7 100644 --- a/ext/mysqlnd/mysqlnd_priv.h +++ b/ext/mysqlnd/mysqlnd_priv.h @@ -111,8 +111,8 @@ enum_func_status mysqlnd_error_info_init(MYSQLND_ERROR_INFO * const info, zend_b #define SET_OOM_ERROR(info) SET_CLIENT_ERROR((info), CR_OUT_OF_MEMORY, UNKNOWN_SQLSTATE, mysqlnd_out_of_memory) #define COPY_CLIENT_ERROR(dest, source) SET_CLIENT_ERROR((dest), (source).error_no, (source).sqlstate, (source).error) -#define CONN_GET_STATE(c) (c)->state.m->get(&(c)->state) -#define CONN_SET_STATE(c, s) (c)->state.m->set(&(c)->state, (s)) +#define GET_CONNECTION_STATE(state_struct) (state_struct)->m->get((state_struct)) +#define SET_CONNECTION_STATE(state_struct, s) (state_struct)->m->set((state_struct), (s)) void mysqlnd_connection_state_init(struct st_mysqlnd_connection_state * const state); -- cgit v1.2.1