summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximilian Brune <maximilian.brune@9elements.com>2024-07-23 12:13:52 +0200
committerFelix Held <felix-coreboot@felixheld.de>2024-08-05 13:10:08 +0000
commit2fbfa0657ff02e5e403b1617a90836d7c0f295f1 (patch)
tree7eb1baec75dddfd0c97b9920a16dda491f4d9298
parentee6117bbf1638b36e024c87cd968d1bbd7180efb (diff)
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>
-rw-r--r--util/cbfstool/common.h4
1 files 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,