summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_priv.h
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2015-10-30 14:06:16 +0100
committerAndrey Hristov <andrey@php.net>2015-11-12 16:19:16 +0100
commit280c834c49284eb0e5f284e1f24453dbeb0c8a79 (patch)
tree5b7ffb601eb35d0873b499cfe477ad78763b391e /ext/mysqlnd/mysqlnd_priv.h
parent109dc08ffde2c9ec6e70f5d85f6ca057128a4135 (diff)
downloadphp-git-280c834c49284eb0e5f284e1f24453dbeb0c8a79.tar.gz
MNDR:
- rename the macro for updating the connection state
Diffstat (limited to 'ext/mysqlnd/mysqlnd_priv.h')
-rw-r--r--ext/mysqlnd/mysqlnd_priv.h4
1 files changed, 2 insertions, 2 deletions
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);