From a62186e44c606a8d4cb45b3d8c3cc9fa6a5038ea Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 21 Dec 2011 19:09:46 +0100 Subject: srd: SRD_ERR_ARGS -> SRD_ERR_ARG. This is done to be consistent with libsigrok's SR_ERR_ARG (nicer that way). --- controller.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'controller.c') 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; -- cgit v1.2.3-70-g09d2