diff options
-rw-r--r-- | psycopg/connection.h | 2 | ||||
-rw-r--r-- | psycopg/connection_int.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/psycopg/connection.h b/psycopg/connection.h index c52abc9..d15c9c6 100644 --- a/psycopg/connection.h +++ b/psycopg/connection.h @@ -71,7 +71,7 @@ extern HIDDEN PyTypeObject connectionType; struct connectionObject_notice { struct connectionObject_notice *next; - const char *message; + char *message; }; /* the typedef is forward-declared in psycopg.h */ diff --git a/psycopg/connection_int.c b/psycopg/connection_int.c index aea2841..8fce908 100644 --- a/psycopg/connection_int.c +++ b/psycopg/connection_int.c @@ -154,7 +154,7 @@ conn_notice_clean(connectionObject *self) while (notice != NULL) { tmp = notice; notice = notice->next; - free((void*)tmp->message); + free(tmp->message); free(tmp); } |