X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=controller.c;h=882cafbe272f25e0bee3fce5d2eb6693407b3a8c;hp=31aad0e0bf060770ca69eb7d18fd370f7ce2f0f6;hb=a62186e44c606a8d4cb45b3d8c3cc9fa6a5038ea;hpb=6547acfda9913a8856e2c875dc3f340570d80583 diff --git a/controller.c b/controller.c index 31aad0e..882cafb 100644 --- a/controller.c +++ b/controller.c @@ -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;