summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
authorokan <okan>2011-07-25 15:10:24 +0000
committerokan <okan>2011-07-25 15:10:24 +0000
commitf51f3cb9c2b39f728f2708d7ab798ecaf1cebaf0 (patch)
tree1fc947a7565944bf2613155ca188c7fda3cbff3c /group.c
parent69ac0624cc07ffc8df11287a8827b42773371b0e (diff)
downloadcwm-f51f3cb9c2b39f728f2708d7ab798ecaf1cebaf0.tar.gz
cwm-f51f3cb9c2b39f728f2708d7ab798ecaf1cebaf0.tar.xz
cwm-f51f3cb9c2b39f728f2708d7ab798ecaf1cebaf0.zip
We are inconsistent when it comes to function returns, so just go all
the way with the cwm specific parts.

ok oga@
Diffstat (limited to 'group.c')
-rw-r--r--group.c6
1 files changed, 3 insertions, 3 deletions
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;
 	}