diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-19 07:32:46 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-19 07:37:53 +0000 |
| commit | 846cb235853c553e7196c131dd0dd6a688116de3 (patch) | |
| tree | aebff297bc5e739130ffdae354e136f295fa557e /util/nvmutil/lib/command.c | |
| parent | f1fda8b43eb03be951846c6df9d0be81be84808e (diff) | |
nvmutil: remove memcmp/memcpy/strrchr/rename
i had this idea in my head of later porting this
to k&r c for fun. but screw it.
compiling on everything since 1989 is enough
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/lib/command.c')
| -rw-r--r-- | util/nvmutil/lib/command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/nvmutil/lib/command.c b/util/nvmutil/lib/command.c index 6b232b5f..367c949a 100644 --- a/util/nvmutil/lib/command.c +++ b/util/nvmutil/lib/command.c @@ -415,17 +415,17 @@ cmd_helper_swap(void) check_cmd(cmd_helper_swap, "swap"); - x_v_memcpy( + memcpy( f->buf + (unsigned long)GBE_WORK_SIZE, f->buf, GBE_PART_SIZE); - x_v_memcpy( + memcpy( f->buf, f->buf + (unsigned long)GBE_PART_SIZE, GBE_PART_SIZE); - x_v_memcpy( + memcpy( f->buf + (unsigned long)GBE_PART_SIZE, f->buf + (unsigned long)GBE_WORK_SIZE, GBE_PART_SIZE); @@ -442,7 +442,7 @@ cmd_helper_copy(void) check_cmd(cmd_helper_copy, "copy"); - x_v_memcpy( + memcpy( f->buf + (unsigned long)((f->part ^ 1) * GBE_PART_SIZE), f->buf + (unsigned long)(f->part * GBE_PART_SIZE), GBE_PART_SIZE); |
