From dbe406641fcc4fb0c55f82d10d27134c095547b7 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 12 Aug 2012 18:34:03 +0200 Subject: [PATCH] use errx() instead of err() for custom error message --- src/display_version.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display_version.c b/src/display_version.c index 669e7c7d..7460a1a2 100644 --- a/src/display_version.c +++ b/src/display_version.c @@ -120,7 +120,7 @@ void display_running_version(void) { yajl_status state = yajl_parse(handle, (const unsigned char*)reply, (int)reply_length); if (state != yajl_status_ok) - err(EXIT_FAILURE, "Could not parse my own reply. That's weird. reply is %.*s", (int)reply_length, reply); + errx(EXIT_FAILURE, "Could not parse my own reply. That's weird. reply is %.*s", (int)reply_length, reply); printf("\rRunning i3 version: %s (pid %s)\n", human_readable_version, pid_from_atom); printf("\n"); -- 2.39.5