aboutsummaryrefslogtreecommitdiffstats
path: root/group.c
diff options
context:
space:
mode:
authorokan2012-11-08 20:18:19 +0000
committerokan2012-11-08 20:18:19 +0000
commitc45deb01bb9c302dd190da1cc4e2f4710f9b59fa (patch)
tree0f2f4a6c78ca6de5545eb32b310d9c863b0b5fc9 /group.c
parentd601f33ea9f677f4577fb61b4ec4861b6cdb0589 (diff)
downloadcwm-c45deb01bb9c302dd190da1cc4e2f4710f9b59fa.tar.gz
fix some warnings; inspired by a diff from Thordur Bjornsson.
Diffstat (limited to '')
-rw-r--r--group.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/group.c b/group.c
index ac663f0..2e55e69 100644
--- a/group.c
+++ b/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;