]> sigrok.org Git - libsigrokdecode.git/blobdiff - type_decoder.c
type_decoder: use ALL_ZERO for sentinels in method/member tables
[libsigrokdecode.git] / type_decoder.c
index d21e92d5d0df76501c0ceb7722e3089e3be7279d..38e0a036c4bdba081b6e4e8c95aec50f4063393f 100644 (file)
@@ -1196,7 +1196,7 @@ static PyMethodDef Decoder_methods[] = {
          Decoder_has_channel, METH_VARARGS,
          Decoder_has_channel_doc,
        },
-       {NULL, NULL, 0, NULL}
+       ALL_ZERO,
 };
 
 /**
@@ -1213,7 +1213,7 @@ SRD_PRIV PyObject *srd_Decoder_type_new(void)
                { Py_tp_doc, Decoder_doc },
                { Py_tp_methods, Decoder_methods },
                { Py_tp_new, (void *)&PyType_GenericNew },
-               { 0, NULL }
+               ALL_ZERO,
        };
        PyObject *py_obj;
        PyGILState_STATE gstate;