diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2013-10-17 13:59:11 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2013-10-17 13:59:11 +0000 |
commit | daa0f8c40983c390576f334018832365f0728a14 (patch) | |
tree | 640ca40fd2da67be5d968a8fb82a01cdc42a77e5 | |
parent | d235af9de57bd2be1658a45d12c7f623cf032b10 (diff) |
a few err->errx since we don't have error messages here; from Tiago Cunha
-rw-r--r-- | app/cwm/group.c | 8 | ||||
-rw-r--r-- | app/cwm/kbfunc.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/app/cwm/group.c b/app/cwm/group.c index 51e2a3400..cce5b4333 100644 --- a/app/cwm/group.c +++ b/app/cwm/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.80 2013/10/03 13:51:59 okan Exp $ + * $OpenBSD: group.c,v 1.81 2013/10/17 13:59:10 okan Exp $ */ #include <sys/param.h> @@ -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/app/cwm/kbfunc.c b/app/cwm/kbfunc.c index 419c0965d..4072a4536 100644 --- a/app/cwm/kbfunc.c +++ b/app/cwm/kbfunc.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: kbfunc.c,v 1.79 2013/07/08 18:19:22 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.80 2013/10/17 13:59:10 okan Exp $ */ #include <sys/param.h> @@ -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; } } |