diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-03-16 16:05:28 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-03-16 17:31:58 +0100 |
commit | 2c6fcae14552ab6e7addc82516617a135f86b5ca (patch) | |
tree | e6c8aff7b0fca5ef81c02bfb7c2d71ec6fc97046 /src/wgt-info.c | |
parent | abfae2b6d73d7be40ffbff8e8429f71d82df90b5 (diff) |
cmake: improves error detection
Add detection of problem of cast.
The problems are corrected in the patch.
Change-Id: I8dc1e987531790860e390dea53ddf49d52339cb2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/wgt-info.c')
-rw-r--r-- | src/wgt-info.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wgt-info.c b/src/wgt-info.c index 02a619b..976fc54 100644 --- a/src/wgt-info.c +++ b/src/wgt-info.c @@ -77,7 +77,7 @@ static xmlChar *optcontent(xmlNodePtr node) static char *mkver(char *version) { - int lver; + unsigned int lver; char c, *r; if (version) { c = version[lver = 0]; @@ -100,7 +100,7 @@ static char *mkver(char *version) static char *mkidaver(char *id, char *ver) { - int lid, lver; + size_t lid, lver; char *r; if (id && ver) { lid = strlen(id); |