diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-02-24 04:00:12 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-02-24 04:00:12 +0000 |
commit | fc78fb09c05195b11b0af27fc9ae12a307f3f12b (patch) | |
tree | c80ec8fcdc02b811f6831c67abe2957474e47c32 | |
parent | 3b36100ec1939f18030d6f78629d4c372ad525f8 (diff) | |
download | psycopg2-fc78fb09c05195b11b0af27fc9ae12a307f3f12b.tar.gz |
Dropped unused pq_resolve_critical() return value
-rw-r--r-- | psycopg/pqpath.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/psycopg/pqpath.c b/psycopg/pqpath.c index 1734ece..e3bba12 100644 --- a/psycopg/pqpath.c +++ b/psycopg/pqpath.c @@ -249,7 +249,7 @@ pq_clear_critical(connectionObject *conn) } } -static PyObject * +static void pq_resolve_critical(connectionObject *conn, int close) { Dprintf("pq_resolve_critical: resolving %s", conn->critical); @@ -264,11 +264,10 @@ pq_resolve_critical(connectionObject *conn, int close) /* we don't want to destroy this connection but just close it */ if (close == 1) conn_close(conn); - + /* remember to clear the critical! */ - pq_clear_critical(conn); + pq_clear_critical(conn); } - return NULL; } /* pq_clear_async - clear the effects of a previous async query |