summaryrefslogtreecommitdiffstats
path: root/commands/loadb.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-07-05 21:20:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-07-25 09:27:27 +0200
commited71cd5c82fa254bb4674f67dc4fce5536929c67 (patch)
treee380d3af36dc1387f01133643b04acc5a618f0ba /commands/loadb.c
parentaca3031223f5478a7fbed3f910a3cf095a8193dc (diff)
downloadbarebox-ed71cd5c82fa254bb4674f67dc4fce5536929c67.tar.gz
barebox-ed71cd5c82fa254bb4674f67dc4fce5536929c67.tar.xz
loadb: fix compilation
'ofd' is always needed, even if LOADB is not selected. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/loadb.c')
-rw-r--r--commands/loadb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/loadb.c b/commands/loadb.c
index 9a697dd6e6..50f323e856 100644
--- a/commands/loadb.c
+++ b/commands/loadb.c
@@ -61,10 +61,10 @@
#define untochar(x) ((int) (((x) - SPACE) & 0xff))
#define DEF_FILE "image.bin"
-#ifdef CONFIG_CMD_LOADB
-
static int ofd; /* output file descriptor */
+#ifdef CONFIG_CMD_LOADB
+
/* Size of my buffer to write to o/p file */
#define MAX_WRITE_BUFFER 4096 /* Write size to o/p file */
static char *write_buffer; /* buffer for finalized data to write */