summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-04-10 14:29:07 -0400
committerJon Loeliger <jdl@jdl.com>2013-04-21 14:23:32 -0500
commitcc2c178727cdeca4eb9756637c2e09e50e0856e7 (patch)
treee5d048e177cd803b9416307fc4ab1993f2c06d12 /tests
parentf8cb5dd94903a5cfa1609695328b8f1d5557367f (diff)
downloaddtc-cc2c178727cdeca4eb9756637c2e09e50e0856e7.tar.gz
utilfdt_read: pass back up the length of data read
For a follow up commit, we want to be able to scan the buffer that was returned to us. In order to do that safely, we need to know how big the buffer actually is, so pass that back if requested. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/testutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testutils.c b/tests/testutils.c
index f185133..67b39b0 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -160,7 +160,7 @@ int nodename_eq(const char *s1, const char *s2)
void *load_blob(const char *filename)
{
char *blob;
- int ret = utilfdt_read_err(filename, &blob);
+ int ret = utilfdt_read_err(filename, &blob, NULL);
if (ret)
CONFIG("Couldn't open blob from \"%s\": %s", filename,