Title: [1001] trunk/internal.c: Use C89 only (PEP 7)
Revision
1001
Author
cito
Date
2019-04-25 18:19:07 -0400 (Thu, 25 Apr 2019)

Log Message

Use C89 only (PEP 7)

Modified Paths


Diff

Modified: trunk/internal.c (1000 => 1001)


--- trunk/internal.c	2019-04-25 22:16:40 UTC (rev 1000)
+++ trunk/internal.c	2019-04-25 22:19:07 UTC (rev 1001)
@@ -1132,12 +1132,13 @@
 static PyObject *
 get_ssl_attributes(PGconn *cnx) {
     PyObject *attr_dict = NULL;
+    const char * const *s;
 
     if (!(attr_dict = PyDict_New())) {
         return NULL;
     }
 
-    for (const char * const *s = PQsslAttributeNames(cnx); *s; ++s) {
+    for (s = PQsslAttributeNames(cnx); *s; ++s) {
         const char *val = PQsslAttribute(cnx, *s);
 
         if (val) {
_______________________________________________
PyGreSQL mailing list
PyGreSQL@Vex.Net
https://mail.vex.net/mailman/listinfo/pygresql

Reply via email to