summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2013-10-17 13:59:10 +0000
committerokan <okan>2013-10-17 13:59:10 +0000
commita88b8c1363bfcb9ddaf1311f6d1e43021a5ce180 (patch)
treeb299de168c786098d01881abc744fbe96013cb04
parentbfd3f5e5e1728cacf0046e7d8e724e10b7380e7b (diff)
downloadcwm-a88b8c1363bfcb9ddaf1311f6d1e43021a5ce180.tar.gz
cwm-a88b8c1363bfcb9ddaf1311f6d1e43021a5ce180.tar.xz
cwm-a88b8c1363bfcb9ddaf1311f6d1e43021a5ce180.zip
a few err->errx since we don't have error messages here; from Tiago Cunha
-rw-r--r--group.c6
-rw-r--r--kbfunc.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/group.c b/group.c
index 9e388fd..2c62ae6 100644
--- a/group.c
+++ b/group.c
@@ -177,7 +177,7 @@ group_movetogroup(struct client_ctx *cc, int idx)
 	struct group_ctx	*gc;
 
 	if (idx < 0 || idx >= CALMWM_NGROUPS)
-		err(1, "group_movetogroup: index out of range (%d)", idx);
+		errx(1, "group_movetogroup: index out of range (%d)", idx);
 
 	gc = &sc->groups[idx];
 	if (cc->group == gc)
@@ -240,7 +240,7 @@ group_hidetoggle(struct screen_ctx *sc, int idx)
 	struct group_ctx	*gc;
 
 	if (idx < 0 || idx >= CALMWM_NGROUPS)
-		err(1, "group_hidetoggle: index out of range (%d)", idx);
+		errx(1, "group_hidetoggle: index out of range (%d)", idx);
 
 	gc = &sc->groups[idx];
 	group_fix_hidden_state(gc);
@@ -261,7 +261,7 @@ group_only(struct screen_ctx *sc, int idx)
 	int	 i;
 
 	if (idx < 0 || idx >= CALMWM_NGROUPS)
-		err(1, "group_only: index out of range (%d)", idx);
+		errx(1, "group_only: index out of range (%d)", idx);
 
 	for (i = 0; i < CALMWM_NGROUPS; i++) {
 		if (i == idx)
diff --git a/kbfunc.c b/kbfunc.c
index 906ca12..4c28a2b 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -250,7 +250,7 @@ kbfunc_exec(struct client_ctx *cc, union arg *arg)
 			label = "wm";
 			break;
 		default:
-			err(1, "kbfunc_exec: invalid cmd %d", cmd);
+			errx(1, "kbfunc_exec: invalid cmd %d", cmd);
 			/*NOTREACHED*/
 	}
 
@@ -305,7 +305,7 @@ kbfunc_exec(struct client_ctx *cc, union arg *arg)
 				warn("%s", mi->text);
 				break;
 			default:
-				err(1, "kb_func: egad, cmd changed value!");
+				errx(1, "kb_func: egad, cmd changed value!");
 				break;
 		}
 	}