diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-04-10 14:29:07 -0400 |
---|---|---|
committer | Jon Loeliger <jdl@jdl.com> | 2013-04-21 14:23:32 -0500 |
commit | cc2c178727cdeca4eb9756637c2e09e50e0856e7 (patch) | |
tree | e5d048e177cd803b9416307fc4ab1993f2c06d12 /fdtput.c | |
parent | f8cb5dd94903a5cfa1609695328b8f1d5557367f (diff) | |
download | dtc-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 'fdtput.c')
-rw-r--r-- | fdtput.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -239,7 +239,7 @@ static int do_fdtput(struct display_info *disp, const char *filename, char *blob; int len, ret = 0; - blob = utilfdt_read(filename); + blob = utilfdt_read(filename, NULL); if (!blob) return -1; |