From 7b161e095734d8de1ca85b05229e5c0ba5b02234 Mon Sep 17 00:00:00 2001 From: zooko <zooko@zooko.com> Date: Fri, 9 Nov 2007 10:24:00 +0530 Subject: [PATCH] zfec: clean up variable names and whitespace darcs-hash:c8415bf64b2a3504c5278eef452c7c79596907b7 --- zfec/zfec/_fecmodule.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); -- 2.45.2