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> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83616 Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Felix Held
parent
ee6117bbf1
commit
2fbfa0657f
@@ -148,14 +148,14 @@ uint32_t string_to_arch(const char *arch_string);
|
||||
|
||||
/* 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,
|
||||
|
Reference in New Issue
Block a user