]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/commitdiff
finally figured out what the C compiler was trying to tell me about prototypes and...
authorzooko <zooko@zooko.com>
Sun, 14 Jun 2009 17:34:15 +0000 (23:04 +0530)
committerzooko <zooko@zooko.com>
Sun, 14 Jun 2009 17:34:15 +0000 (23:04 +0530)
Ignore-this: 9c4440c6370bf188715b860b79652881

darcs-hash:e46cb5c9390823e0057c420c3206a05ca4a6a17d

zfec/zfec/_fecmodule.c

index 21e3e628320e2685ba73a22279aad1a1b8e92a46..38645bcd710b5c52c392afc321eedde7120e482d 100644 (file)
@@ -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} 
 };