summaryrefslogtreecommitdiff
path: root/payloads/libpayload/libc
diff options
context:
space:
mode:
authorPaul Menzel <paulepanter@users.sourceforge.net>2014-03-24 00:42:36 +0100
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-12-19 21:07:22 +0100
commitccf53af8a99aba3273fc7d515480c5b6826f4287 (patch)
tree91de24f14d57870f3d8c64f80b79689a16f644ab /payloads/libpayload/libc
parent3165c46f451ccc2e223167aba84343cf8f269e35 (diff)
downloadcoreboot-ccf53af8a99aba3273fc7d515480c5b6826f4287.tar.xz
libpayload/libc/hexdump.c: Take `const void *memory` as argument
`*memory` is not changed in `hexdump()` and just read so make it `const`. Change-Id: I9504d25ab5c785f05c39c9a4f48c21f68659a829 Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-on: http://review.coreboot.org/5403 Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'payloads/libpayload/libc')
-rw-r--r--payloads/libpayload/libc/hexdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/libc/hexdump.c b/payloads/libpayload/libc/hexdump.c
index 1a35f05c0f..ee07e5a9e1 100644
--- a/payloads/libpayload/libc/hexdump.c
+++ b/payloads/libpayload/libc/hexdump.c
@@ -29,7 +29,7 @@
#include <libpayload.h>
-void hexdump(void *memory, size_t length)
+void hexdump(const void *memory, size_t length)
{
int i;
uint8_t *m;