about summary refs log tree commit diff
path: root/ring.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-05 16:47:48 -0400
committerJune McEnroe <june@causal.agency>2021-09-05 16:47:48 -0400
commit690526fec2fb7958b621f3f6ac77c9612f1e73dc (patch)
tree22f649fd3492b46a50874943bef0589ae990c071 /ring.c
parentExpand on -s size option (diff)
downloadpounce-690526fec2fb7958b621f3f6ac77c9612f1e73dc.tar.gz
pounce-690526fec2fb7958b621f3f6ac77c9612f1e73dc.zip
Use EX_USAGE for all local configuration errors
Diffstat (limited to 'ring.c')
-rw-r--r--ring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ring.c b/ring.c
index ed2c078..735d780 100644
--- a/ring.c
+++ b/ring.c
@@ -44,7 +44,7 @@ static struct {
 
 void ringAlloc(size_t len) {
 	if (len & (len - 1)) {
-		errx(EX_CONFIG, "ring length must be power of two: %zu", len);
+		errx(EX_USAGE, "ring length must be power of two: %zu", len);
 	}
 	ring.lines = calloc(len, sizeof(*ring.lines));
 	if (!ring.lines) err(EX_OSERR, "calloc");