Skip to content

Commit

Permalink
Make numConnectDataArgs const (#472)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
  • Loading branch information
alexhenrie committed Aug 26, 2020
1 parent d726c8b commit f338af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cxoModule.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static int cxoModule_setException(PyObject *module, PyObject **exception,
static PyObject* cxoModule_makeDSN(PyObject* self, PyObject* args,
PyObject* keywordArgs)
{
static unsigned int numConnectDataArgs = 5;
static const unsigned int numConnectDataArgs = 5;
static char *keywordList[] = { "host", "port", "sid", "service_name",
"region", "sharding_key", "super_sharding_key", NULL };
PyObject *result, *connectData, *hostObj, *portObj;
Expand Down

0 comments on commit f338af9

Please sign in to comment.