diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-09-12 07:05:52 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-09-12 07:05:52 +0000 |
commit | 9952cfa5c429dc2ee3ba4b24a7974c91bf9a3d29 (patch) | |
tree | 33c2e9bb5961c2a517208b05c7f4b22c14b82038 /package/config/confdata.c | |
parent | 0c1a521ce5da7372aaeb9a58ca55b43ba94611b8 (diff) |
- revert r19825. Fix this in the kernel instead and read README.buildroot2
Diffstat (limited to 'package/config/confdata.c')
-rw-r--r-- | package/config/confdata.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/package/config/confdata.c b/package/config/confdata.c index 68633efc8..0098a08ee 100644 --- a/package/config/confdata.c +++ b/package/config/confdata.c @@ -51,8 +51,8 @@ static char *conf_expand_value(const char *in) res_value[0] = 0; dst = name; - while ((src = (signed char *) strchr((const char *)in, '$'))) { - strncat(res_value, (char *)in, src - in); + while ((src = strchr(in, '$'))) { + strncat(res_value, in, src - in); src++; dst = name; while (isalnum(*src) || *src == '_') @@ -63,7 +63,7 @@ static char *conf_expand_value(const char *in) strcat(res_value, sym_get_string_value(sym)); in = src; } - strcat(res_value, (const char *)in); + strcat(res_value, in); return res_value; } @@ -74,7 +74,7 @@ char *conf_get_default_confname(void) static char fullname[PATH_MAX+1]; char *env, *name; - name = conf_expand_value((const signed char *)conf_defname); + name = conf_expand_value(conf_defname); env = getenv(SRCTREE); if (env) { sprintf(fullname, "%s/%s", env, name); |