From: zooko Date: Fri, 9 Nov 2007 04:54:00 +0000 (+0530) Subject: zfec: clean up variable names and whitespace X-Git-Url: https://git.rkrishnan.org/pf/content/%22file:/frontends/somewhere?a=commitdiff_plain;h=7b161e095734d8de1ca85b05229e5c0ba5b02234;p=tahoe-lafs%2Fzfec.git zfec: clean up variable names and whitespace darcs-hash:c8415bf64b2a3504c5278eef452c7c79596907b7 --- diff --git a/zfec/zfec/_fecmodule.c b/zfec/zfec/_fecmodule.c index 4939a8c..36127a8 100644 --- a/zfec/zfec/_fecmodule.c +++ b/zfec/zfec/_fecmodule.c @@ -52,7 +52,7 @@ typedef struct { } Encoder; static PyObject * -Encoder_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { +Encoder_new(PyTypeObject *type, PyObject *args, PyObject *kwdict) { Encoder *self; self = (Encoder*)type->tp_alloc(type, 0); @@ -78,19 +78,19 @@ Encoder_init(Encoder *self, PyObject *args, PyObject *kwdict) { if (ink < 1) { py_raise_fec_error("Precondition violation: first argument is required to be greater than or equal to 1, but it was %d", self->kk); - return -1; + return -1; } if (inm < 1) { py_raise_fec_error("Precondition violation: second argument is required to be greater than or equal to 1, but it was %d", self->mm); - return -1; + return -1; } if (inm > 256) { py_raise_fec_error("Precondition violation: second argument is required to be less than or equal to 256, but it was %d", self->mm); - return -1; + return -1; } if (ink > inm) { py_raise_fec_error("Precondition violation: first argument is required to be less than or equal to the second argument, but they were %d and %d respectively", ink, inm); - return -1; + return -1; } self->kk = (short)ink; self->mm = (short)inm; @@ -307,7 +307,7 @@ typedef struct { } Decoder; static PyObject * -Decoder_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { +Decoder_new(PyTypeObject *type, PyObject *args, PyObject *kwdict) { Decoder *self; self = (Decoder*)type->tp_alloc(type, 0);