X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=type_decoder.c;h=983400bacb0070fd07826c10c5ed397f17f36555;hp=c097c7fce5b94cb950d3cb03c0fb4e52371a0df2;hb=9e3ed17732bfee95dd17fbd74ad82195a992eb2f;hpb=1bfb520c95f4bd617c804960435b3f95907bf065 diff --git a/type_decoder.c b/type_decoder.c index c097c7f..983400b 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -1037,7 +1037,7 @@ err: static PyMethodDef Decoder_methods[] = { { "put", Decoder_put, METH_VARARGS, "Accepts a dictionary with the following keys: startsample, endsample, data" }, - { "register", (PyCFunction)Decoder_register, METH_VARARGS|METH_KEYWORDS, + { "register", (PyCFunction)(void(*)(void))Decoder_register, METH_VARARGS|METH_KEYWORDS, "Register a new output stream" }, { "wait", Decoder_wait, METH_VARARGS, "Wait for one or more conditions to occur" },