diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2018-03-17 14:53:23 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-06-07 11:49:17 +1000 |
commit | fb9c6abddaa818a0261eaa11dce5fd8cfbd61b18 (patch) | |
tree | b25fc6c7daff426e8e954a403d120737b9a28fc4 /util.h | |
parent | 0112fda03bf653e36592b22dee97767aaa524232 (diff) | |
download | dtc-fb9c6abddaa818a0261eaa11dce5fd8cfbd61b18.zip dtc-fb9c6abddaa818a0261eaa11dce5fd8cfbd61b18.tar.gz dtc-fb9c6abddaa818a0261eaa11dce5fd8cfbd61b18.tar.bz2 |
Use size_t for blob lengths in utilfdt_read*
It's more appropriate than off_t since it is, after all, a size not an
offset.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -101,7 +101,7 @@ char get_escape_char(const char *s, int *i); * @param len If non-NULL, the amount of data we managed to read * @return Pointer to allocated buffer containing fdt, or NULL on error */ -char *utilfdt_read(const char *filename, off_t *len); +char *utilfdt_read(const char *filename, size_t *len); /** * Read a device tree file into a buffer. Does not report errors, but only @@ -113,7 +113,7 @@ char *utilfdt_read(const char *filename, off_t *len); * @param len If non-NULL, the amount of data we managed to read * @return 0 if ok, else an errno value representing the error */ -int utilfdt_read_err(const char *filename, char **buffp, off_t *len); +int utilfdt_read_err(const char *filename, char **buffp, size_t *len); /** * Write a device tree buffer to a file. This will report any errors on |