From 1989a0f46ad11a235d6788f7fbed880cd02aad19 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Fri, 16 Jun 2023 15:38:22 -0300 Subject: common.h: line-wrap errExit --- src/include/common.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/common.h b/src/include/common.h index a0ad8c765..060945f82 100644 --- a/src/include/common.h +++ b/src/include/common.h @@ -35,8 +35,12 @@ // dbus proxy path used by firejail and firemon #define XDG_DBUS_PROXY_PATH "/usr/bin/xdg-dbus-proxy" - -#define errExit(msg) do { char msgout[500]; snprintf(msgout, 500, "Error %s: %s:%d %s", msg, __FILE__, __LINE__, __FUNCTION__); perror(msgout); exit(1);} while (0) +#define errExit(msg) do { \ + char msgout[500]; \ + snprintf(msgout, 500, "Error %s: %s:%d %s", msg, __FILE__, __LINE__, __FUNCTION__); \ + perror(msgout); \ + exit(1); \ +} while (0) // macro to print ip addresses in a printf statement #define PRINT_IP(A) \ -- cgit v1.2.3-54-g00ecf