From 2fbfa0657ff02e5e403b1617a90836d7c0f295f1 Mon Sep 17 00:00:00 2001 From: Maximilian Brune Date: Tue, 23 Jul 2024 12:13:52 +0200 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/83616 Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) --- util/cbfstool/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h index 498aae69c2..88d5238fce 100644 --- a/util/cbfstool/common.h +++ b/util/cbfstool/common.h @@ -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,