From f51f3cb9c2b39f728f2708d7ab798ecaf1cebaf0 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 25 Jul 2011 15:10:24 +0000 Subject: We are inconsistent when it comes to function returns, so just go all the way with the cwm specific parts. ok oga@ --- group.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'group.c') diff --git a/group.c b/group.c index 42cdbe7..e8d23e8 100644 --- a/group.c +++ b/group.c @@ -377,10 +377,10 @@ group_menu(XButtonEvent *e) mi = xcalloc(1, sizeof(*mi)); if (gc->hidden) - snprintf(mi->text, sizeof(mi->text), "%d: [%s]", + (void)snprintf(mi->text, sizeof(mi->text), "%d: [%s]", gc->shortcut, sc->group_names[i]); else - snprintf(mi->text, sizeof(mi->text), "%d: %s", + (void)snprintf(mi->text, sizeof(mi->text), "%d: %s", gc->shortcut, sc->group_names[i]); mi->ctx = gc; TAILQ_INSERT_TAIL(&menuq, mi, entry); @@ -533,7 +533,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; - strlcpy(q, sc->group_names[i], tlen); + (void)strlcpy(q, sc->group_names[i], tlen); tlen -= slen; q += slen; } -- cgit 1.4.1