Maximilian Brune has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/83616?usp=email )
Change subject: util/cbfstool/common.h Fix wrong return value doc ......................................................................
util/cbfstool/common.h Fix wrong return value doc
The compressing and decompressing functions return 0 on success and not the other way around.
Change-Id: I9f8653aa805c62eb4bfc3560d7880921830c2c59 Signed-off-by: Maximilian Brune maximilian.brune@9elements.com --- M util/cbfstool/common.h 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/16/83616/1
diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h index 498aae6..88d5238 100644 --- a/util/cbfstool/common.h +++ b/util/cbfstool/common.h @@ -148,14 +148,14 @@
/* Compress in_len bytes from in, storing the result at out, returning the * resulting length in out_len. - * Returns 0 on error, + * Returns 0 on success, * != 0 otherwise, depending on the compressing function. */ typedef int (*comp_func_ptr) (char *in, int in_len, char *out, int *out_len);
/* Decompress in_len bytes from in, storing the result at out, up to out_len * bytes. - * Returns 0 on error, + * Returns 0 on success, * != 0 otherwise, depending on the decompressing function. */ typedef int (*decomp_func_ptr) (char *in, int in_len, char *out, int out_len,