diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-29 08:37:32 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-29 08:37:32 +0100 |
| commit | 45edcf33f7d4b2f405c0f59fccc71b6ac15f5c65 (patch) | |
| tree | 8265896bd03c180d40e08549ad69f7eaf7ff4c7e /util/libreboot-utils/lib/rand.c | |
| parent | 6e4839d3566bbabd30d0d15b4edb820d4d4b042f (diff) | |
lbutils: rename mkrbuf to rmalloc
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lib/rand.c')
| -rw-r--r-- | util/libreboot-utils/lib/rand.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/libreboot-utils/lib/rand.c b/util/libreboot-utils/lib/rand.c index 9edc8a5b..2cb0f56d 100644 --- a/util/libreboot-utils/lib/rand.c +++ b/util/libreboot-utils/lib/rand.c @@ -92,12 +92,12 @@ mkrstr(size_t n) /* emulates spkmodem-decode */ size_t i; if (n == 0) - err_exit(EPERM, "mkrbuf: zero-byte request"); + err_exit(EPERM, "rmalloc: zero-byte request"); if (n >= SIZE_MAX - 1) - err_exit(EOVERFLOW, "mkrbuf: overflow"); + err_exit(EOVERFLOW, "rmalloc: overflow"); - if (if_err((s = mkrbuf(n + 1)) == NULL, EFAULT)) + if (if_err((s = rmalloc(n + 1)) == NULL, EFAULT)) err_exit(EFAULT, "mkrstr: null"); for (i = 0; i < n; i++) @@ -110,7 +110,7 @@ mkrstr(size_t n) /* emulates spkmodem-decode */ } void * -mkrbuf(size_t n) +rmalloc(size_t n) { void *buf = NULL; rset(vmalloc(&buf, n), n); |
