diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-09-12 05:56:42 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-09-12 05:56:42 +0000 |
commit | 0c1a521ce5da7372aaeb9a58ca55b43ba94611b8 (patch) | |
tree | 8e393e37e222de5c53c5672cbc51b8a28cd936e3 /package/config/confdata.c | |
parent | 079929e7647e9e7b327e215ef1fba6856a68bf67 (diff) | |
download | buildroot-novena-0c1a521ce5da7372aaeb9a58ca55b43ba94611b8.tar.gz buildroot-novena-0c1a521ce5da7372aaeb9a58ca55b43ba94611b8.zip |
Watching all the warnings on package/config finally got to me.
A patch that clears the gcc warnings from config with cast changes only.
thanks, I feel better now,
Rick Foos <rick@synchromeshcomputing.com>
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 0098a08ee..68633efc8 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 = strchr(in, '$'))) { - strncat(res_value, in, src - in); + while ((src = (signed char *) strchr((const char *)in, '$'))) { + strncat(res_value, (char *)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, in); + strcat(res_value, (const char *)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(conf_defname); + name = conf_expand_value((const signed char *)conf_defname); env = getenv(SRCTREE); if (env) { sprintf(fullname, "%s/%s", env, name); |