fix some signedness warnings

This commit is contained in:
Michael Weber
2012-06-29 16:58:04 +02:00
parent 80e96d3ea9
commit 95484ae032
2 changed files with 4 additions and 4 deletions

View File

@@ -551,7 +551,7 @@ group_update_names(struct screen_ctx *sc)
nstrings) * sizeof(*strings));
i = n = 0;
p = prop_ret;
p = (char *) prop_ret;
while (n < nstrings) {
strings[n++] = xstrdup(p);
p += strlen(p) + 1;
@@ -592,7 +592,7 @@ group_set_names(struct screen_ctx *sc)
tlen = len;
for (i = 0; i < sc->group_nonames; i++) {
slen = strlen(sc->group_names[i]) + 1;
(void)strlcpy(q, sc->group_names[i], tlen);
(void)strlcpy((char *) q, sc->group_names[i], tlen);
tlen -= slen;
q += slen;
}