]> sigrok.org Git - libsigrokdecode.git/blobdiff - controller.c
srd: SRD_ERR_ARGS -> SRD_ERR_ARG.
[libsigrokdecode.git] / controller.c
index 31aad0e0bf060770ca69eb7d18fd370f7ce2f0f6..882cafbe272f25e0bee3fce5d2eb6693407b3a8c 100644 (file)
@@ -311,11 +311,11 @@ int srd_run_decoder(struct srd_decoder_instance *dec,
 
        /* Return an error upon unusable input. */
        if (dec == NULL)
-               return SRD_ERR_ARGS; /* TODO: More specific error? */
+               return SRD_ERR_ARG; /* TODO: More specific error? */
        if (inbuf == NULL)
-               return SRD_ERR_ARGS; /* TODO: More specific error? */
+               return SRD_ERR_ARG; /* TODO: More specific error? */
        if (inbuflen == 0) /* No point in working on empty buffers. */
-               return SRD_ERR_ARGS; /* TODO: More specific error? */
+               return SRD_ERR_ARG; /* TODO: More specific error? */
 
        /* TODO: Error handling. */
        py_instance = dec->py_instance;