summaryrefslogtreecommitdiffstats
path: root/commands/oftree.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-07-04 09:28:01 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-07-11 08:14:42 +0200
commita0962885af0a32bd841819a7c3f1c11310bfc074 (patch)
treec3cf4acdda44e15b09fd4203eb7e0bf5286dc33a /commands/oftree.c
parent76c0935726672e5d87608eddfe79f127c9a3bc45 (diff)
downloadbarebox-a0962885af0a32bd841819a7c3f1c11310bfc074.tar.gz
barebox-a0962885af0a32bd841819a7c3f1c11310bfc074.tar.xz
oftree command: Use size_t for size
read_file takes a size_t argument as size, so use this type for the size variable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/oftree.c')
-rw-r--r--commands/oftree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/oftree.c b/commands/oftree.c
index 983a0a59ea..49976bc02a 100644
--- a/commands/oftree.c
+++ b/commands/oftree.c
@@ -42,7 +42,7 @@
static int do_oftree(int argc, char *argv[])
{
struct fdt_header *fdt = NULL;
- int size;
+ size_t size;
int opt;
int probe = 0;
char *load = NULL;