Commits

Denis Bilenko committed 7fc4e90

dnshelper.c: remove unused argument from internal function

  • Participants
  • Parent commits 77b0cd4

Comments (0)

Files changed (1)

File gevent/dnshelper.c

 static PyObject* _socket_error = 0;
 
 static PyObject*
-get_socket_object(PyObject** pobject, const char* name, int incref)
+get_socket_object(PyObject** pobject, const char* name)
 {
     if (!*pobject) {
         PyObject* _socket;
             *pobject = PyExc_IOError;
         }
     }
-    if (incref)
-        Py_INCREF(*pobject);
     return *pobject;
 }
 
                 break;
             }
             default:
-                PyErr_SetString(get_socket_object(&_socket_error, "error", 0), "unsupported address family");
+                PyErr_SetString(get_socket_object(&_socket_error, "error"), "unsupported address family");
                 Py_DECREF(result);
                 result = NULL;
         }