Clean up compiler warnings about

assignment discards qualifiers from pointer target type
This commit is contained in:
adustman
2002-08-22 15:20:25 +00:00
parent 226d7fc212
commit ba841ee17a

View File

@ -1144,7 +1144,7 @@ _mysql_ConnectionObject_info(
_mysql_ConnectionObject *self, _mysql_ConnectionObject *self,
PyObject *args) PyObject *args)
{ {
char *s; const char *s;
if (!PyArg_NoArgs(args)) return NULL; if (!PyArg_NoArgs(args)) return NULL;
check_connection(self); check_connection(self);
s = mysql_info(&(self->connection)); s = mysql_info(&(self->connection));
@ -1372,7 +1372,7 @@ _mysql_ConnectionObject_stat(
_mysql_ConnectionObject *self, _mysql_ConnectionObject *self,
PyObject *args) PyObject *args)
{ {
char *s; const char *s;
if (!PyArg_NoArgs(args)) return NULL; if (!PyArg_NoArgs(args)) return NULL;
check_connection(self); check_connection(self);
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS