From: zooko Date: Sun, 14 Jun 2009 17:34:15 +0000 (+0530) Subject: finally figured out what the C compiler was trying to tell me about prototypes and... X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;ds=sidebyside;h=c48dc20bc96cf0ae4b3d1f834ff5cd7def5c296d;p=tahoe-lafs%2Fzfec.git finally figured out what the C compiler was trying to tell me about prototypes and types Ignore-this: 9c4440c6370bf188715b860b79652881 darcs-hash:e46cb5c9390823e0057c420c3206a05ca4a6a17d --- diff --git a/zfec/zfec/_fecmodule.c b/zfec/zfec/_fecmodule.c index 21e3e62..38645bc 100644 --- a/zfec/zfec/_fecmodule.c +++ b/zfec/zfec/_fecmodule.c @@ -557,10 +557,7 @@ _hexwrite(unsigned char*s, size_t l) { PyObject* -test_from_agl(); /* <- prototype */ - -PyObject* -test_from_agl() { +test_from_agl(PyObject* self, PyObject* args) { unsigned char b0c[8], b1c[8]; unsigned char b0[8], b1[8], b2[8], b3[8], b4[8]; memset(b0, 1, 8); @@ -604,7 +601,7 @@ test_from_agl() { } static PyMethodDef fec_functions[] = { - {"test_from_agl", test_from_agl, METH_NOARGS, NULL}, + {"test_from_agl", test_from_agl, METH_NOARGS, NULL}, {NULL} };