about summary refs log tree commit diff
path: root/mousefunc.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 /mousefunc.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 'mousefunc.c')
-rw-r--r--mousefunc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 40158d2..6e697de 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -57,7 +57,7 @@ mousefunc_sweep_draw(struct client_ctx *cc)
 	char			 asize[10]; /* fits "nnnnxnnnn\0" */
 	int			 width, width_size, width_name;
 
-	snprintf(asize, sizeof(asize), "%dx%d",
+	(void)snprintf(asize, sizeof(asize), "%dx%d",
 	    (cc->geom.width - cc->geom.basew) / cc->geom.incw,
 	    (cc->geom.height - cc->geom.baseh) / cc->geom.inch);
 	width_size = font_width(sc, asize, strlen(asize)) + 4;
@@ -234,7 +234,7 @@ mousefunc_menu_unhide(struct client_ctx *cc, void *arg)
 				continue;
 
 			mi = xcalloc(1, sizeof(*mi));
-			strlcpy(mi->text, wname, sizeof(mi->text));
+			(void)strlcpy(mi->text, wname, sizeof(mi->text));
 			mi->ctx = cc;
 			TAILQ_INSERT_TAIL(&menuq, mi, entry);
 		}
@@ -271,7 +271,7 @@ mousefunc_menu_cmd(struct client_ctx *cc, void *arg)
 	TAILQ_INIT(&menuq);
 	TAILQ_FOREACH(cmd, &Conf.cmdq, entry) {
 		mi = xcalloc(1, sizeof(*mi));
-		strlcpy(mi->text, cmd->label, sizeof(mi->text));
+		(void)strlcpy(mi->text, cmd->label, sizeof(mi->text));
 		mi->ctx = cmd;
 		TAILQ_INSERT_TAIL(&menuq, mi, entry);
 	}