mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
Revert "utilfdt_read: pass back up the length of data read"
This reverts commit cc2c178727
.
It was the wrong version of the patch.
This commit is contained in:
parent
31be4ce7ca
commit
5543b88d5e
5 changed files with 8 additions and 12 deletions
8
util.c
8
util.c
|
@ -198,7 +198,7 @@ char get_escape_char(const char *s, int *i)
|
|||
return val;
|
||||
}
|
||||
|
||||
int utilfdt_read_err(const char *filename, char **buffp, off_t *len)
|
||||
int utilfdt_read_err(const char *filename, char **buffp)
|
||||
{
|
||||
int fd = 0; /* assume stdin */
|
||||
char *buf = NULL;
|
||||
|
@ -239,15 +239,13 @@ int utilfdt_read_err(const char *filename, char **buffp, off_t *len)
|
|||
free(buf);
|
||||
else
|
||||
*buffp = buf;
|
||||
if (len)
|
||||
*len = bufsize;
|
||||
return ret;
|
||||
}
|
||||
|
||||
char *utilfdt_read(const char *filename, off_t *len)
|
||||
char *utilfdt_read(const char *filename)
|
||||
{
|
||||
char *buff;
|
||||
int ret = utilfdt_read_err(filename, &buff, len);
|
||||
int ret = utilfdt_read_err(filename, &buff);
|
||||
|
||||
if (ret) {
|
||||
fprintf(stderr, "Couldn't open blob from '%s': %s\n", filename,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue