summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-01-10 02:22:05 -0600
committerWolfgang Denk <wd@denx.de>2008-01-11 23:39:54 +0100
commit0ec595243dc99edcd248bbcfbfd5a1dc860bde89 (patch)
tree6583c5b15a3ce05d86f1e3cb8197dc742b1ecd97 /common/main.c
parent422b1a01602b6e2fbf8444a1192c7ba31461fd4c (diff)
downloadu-boot-imx-0ec595243dc99edcd248bbcfbfd5a1dc860bde89.zip
u-boot-imx-0ec595243dc99edcd248bbcfbfd5a1dc860bde89.tar.gz
u-boot-imx-0ec595243dc99edcd248bbcfbfd5a1dc860bde89.tar.bz2
Fix compiler warning
main.c: In function 'readline_into_buffer': main.c:927: warning: unused variable 'p_buf' Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/main.c b/common/main.c
index ad2a386..1c7d73e 100644
--- a/common/main.c
+++ b/common/main.c
@@ -924,7 +924,6 @@ int readline (const char *const prompt)
int readline_into_buffer (const char *const prompt, char * buffer)
{
char *p = buffer;
- char * p_buf = p;
#ifdef CONFIG_CMDLINE_EDITING
unsigned int len=MAX_CMDBUF_SIZE;
int rc;
@@ -940,6 +939,7 @@ int readline_into_buffer (const char *const prompt, char * buffer)
rc = cread_line(prompt, p, &len);
return rc < 0 ? rc : len;
#else
+ char * p_buf = p;
int n = 0; /* buffer index */
int plen = 0; /* prompt length */
int col; /* output column cnt */