fix some warnings; inspired by a diff from Thordur Bjornsson.

This commit is contained in:
okan
2012-11-08 20:18:19 +00:00
parent c9c0a5fdbb
commit 04d4ed7b7e
3 changed files with 8 additions and 7 deletions

View File

@@ -472,7 +472,7 @@ group_update_names(struct screen_ctx *sc)
strings = xmalloc((nstrings < CALMWM_NGROUPS ? CALMWM_NGROUPS :
nstrings) * sizeof(*strings));
p = prop_ret;
p = (char *)prop_ret;
while (n < nstrings) {
strings[n++] = xstrdup(p);
p += strlen(p) + 1;
@@ -502,7 +502,7 @@ group_update_names(struct screen_ctx *sc)
static void
group_set_names(struct screen_ctx *sc)
{
unsigned char *p, *q;
char *p, *q;
size_t len = 0, tlen, slen;
int i;