summaryrefslogtreecommitdiffstats
path: root/common/parser.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:02:16 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:02:16 +0200
commit98432d39255c9ff4894bf9917ead3e73a09a6649 (patch)
tree4fd77c84466f1a76ff52e05ed50d51b05cda6099 /common/parser.c
parentf35190d65b08d967ff4e64d69b48c513071fe811 (diff)
downloadbarebox-98432d39255c9ff4894bf9917ead3e73a09a6649.tar.gz
svn_rev_683
more cleanups, fix compiler warnings
Diffstat (limited to 'common/parser.c')
-rw-r--r--common/parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/parser.c b/common/parser.c
index 23f2a37..5e6bf3c 100644
--- a/common/parser.c
+++ b/common/parser.c
@@ -1,5 +1,6 @@
#include <common.h>
#include <command.h>
+#include <environment.h>
int parse_line (char *line, char *argv[])
{
@@ -114,7 +115,8 @@ static void process_macros (const char *input, char *output)
case 2: /* Waiting for ) */
if (c == ')' || c == '}') {
int i;
- char envname[CONFIG_CBSIZE], *envval;
+ char envname[CONFIG_CBSIZE];
+ const char *envval;
int envcnt = input - varname_start - 1; /* Varname # of chars */
/* Get the varname */