diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2012-11-08 20:18:20 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2012-11-08 20:18:20 +0000 |
commit | 9c295445adf40554498c876a37cb753a9b842d9a (patch) | |
tree | 9f16dfe06f2fc9696d76741858664dda3ef58e32 /app/cwm/group.c | |
parent | 7e0a6f9a873a76462d0d28c8e853675fcbbc10e8 (diff) |
fix some warnings; inspired by a diff from Thordur Bjornsson.
Diffstat (limited to 'app/cwm/group.c')
-rw-r--r-- | app/cwm/group.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/cwm/group.c b/app/cwm/group.c index ac663f08b..2e55e69e5 100644 --- a/app/cwm/group.c +++ b/app/cwm/group.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: group.c,v 1.61 2012/11/07 20:34:39 okan Exp $ + * $OpenBSD: group.c,v 1.62 2012/11/08 20:18:19 okan Exp $ */ #include <sys/param.h> @@ -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; |