mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 05:36:23 +02:00
util/nvmutil: cast SIZE_4KB on the pwrite check
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -672,7 +672,7 @@ write_gbe_part(int p)
|
|||||||
swap(p); /* swap bytes on big-endian host CPUs */
|
swap(p); /* swap bytes on big-endian host CPUs */
|
||||||
|
|
||||||
if (pwrite(fd, buf + (SIZE_4KB * p),
|
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,
|
err(ECANCELED,
|
||||||
"Can't write %d b to '%s' p%d", SIZE_4KB, fname, p);
|
"Can't write %d b to '%s' p%d", SIZE_4KB, fname, p);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user