summaryrefslogtreecommitdiff
path: root/controller.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2011-12-21 19:09:46 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2011-12-22 14:16:07 +0100
commita62186e44c606a8d4cb45b3d8c3cc9fa6a5038ea (patch)
tree9d63d4c3caf44b2e3b288222d05783b852b4cf29 /controller.c
parent43c0a640533331c45ed1b46725524773085de99e (diff)
downloadlibsigrokdecode-a62186e44c606a8d4cb45b3d8c3cc9fa6a5038ea.tar.gz
libsigrokdecode-a62186e44c606a8d4cb45b3d8c3cc9fa6a5038ea.zip
srd: SRD_ERR_ARGS -> SRD_ERR_ARG.
This is done to be consistent with libsigrok's SR_ERR_ARG (nicer that way).
Diffstat (limited to 'controller.c')
-rw-r--r--controller.c6
1 files changed, 3 insertions, 3 deletions
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;