From c48dc20bc96cf0ae4b3d1f834ff5cd7def5c296d Mon Sep 17 00:00:00 2001
From: zooko <zooko@zooko.com>
Date: Sun, 14 Jun 2009 23:04:15 +0530
Subject: [PATCH] finally figured out what the C compiler was trying to tell me
 about prototypes and types

Ignore-this: 9c4440c6370bf188715b860b79652881

darcs-hash:e46cb5c9390823e0057c420c3206a05ca4a6a17d
---
 zfec/zfec/_fecmodule.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

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} 
 };
 
-- 
2.45.2