summaryrefslogtreecommitdiff
path: root/util/nvmutil/nvmutil.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-04 01:02:27 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-04 01:02:42 +0000
commit0d4822e7001a010f713a6d229e7d2cc6a2a1034e (patch)
tree3afacb85a79338bb3d6cbcaa3387e142e22b1995 /util/nvmutil/nvmutil.c
parent0d3a8749fedf8c51ee614f16d3fa664a94de8d27 (diff)
util/nvmutil: cast SIZE_4KB on the pwrite check
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
-rw-r--r--util/nvmutil/nvmutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index ce628699..7374518f 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -672,7 +672,7 @@ write_gbe_part(int p)
swap(p); /* swap bytes on big-endian host CPUs */
if (pwrite(fd, buf + (SIZE_4KB * p),
- SIZE_4KB, ((off_t) p) * partsize) != SIZE_4KB) {
+ SIZE_4KB, ((off_t) p) * partsize) != (ssize_t) SIZE_4KB) {
err(ECANCELED,
"Can't write %d b to '%s' p%d", SIZE_4KB, fname, p);
}