C89-ify the python code.

pull/1439/head
Nicolas "Pixel" Noble 10 years ago
parent 7e8ecf7afe
commit 64237fb02d
  1. 4
      src/python/src/grpc/_adapter/_completion_queue.c
  2. 2
      src/python/src/grpc/_adapter/_tag.h

@ -354,6 +354,8 @@ static PyObject *pygrpc_completion_queue_get(CompletionQueue *self,
PyObject *event_args;
PyObject *event;
pygrpc_tag *tag;
if (!(PyArg_ParseTuple(args, "O:get", &deadline))) {
return NULL;
}
@ -380,7 +382,7 @@ static PyObject *pygrpc_completion_queue_get(CompletionQueue *self,
Py_RETURN_NONE;
}
pygrpc_tag *tag = (pygrpc_tag *)c_event->tag;
tag = (pygrpc_tag *)c_event->tag;
switch (c_event->type) {
case GRPC_QUEUE_SHUTDOWN:

@ -51,7 +51,7 @@ typedef enum {
PYGRPC_FINISH_ACCEPTED = 4,
PYGRPC_CLIENT_METADATA_READ = 5,
PYGRPC_FINISHED_CLIENT = 6,
PYGRPC_FINISHED_SERVER = 7,
PYGRPC_FINISHED_SERVER = 7
} pygrpc_tag_type;
typedef struct {

Loading…
Cancel
Save