From cf850a3ef79e2ccac94bdd000522c80e4592fabb Mon Sep 17 00:00:00 2001 From: mirabilos Date: Wed, 12 Apr 2023 01:09:36 +0200 Subject: [PATCH] =?UTF-8?q?appease=20GCC=E2=80=99s=20-Wformat=20being=20un?= =?UTF-8?q?able=20to=20look=20into=20errbuf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ws2/server/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ws2/server/server.c b/ws2/server/server.c index 1b1e88b..e7f71ad 100644 --- a/ws2/server/server.c +++ b/ws2/server/server.c @@ -69,8 +69,8 @@ typedef int SOCKET; #define INVALID_SOCKET (-1) #define closesocket close -#define ws2warn warn -#define ws2err err +#define ws2warn(s) warn("%s", s) /* could be more efficient, but… */ +#define ws2err(n,s) err(n, "%s", s) /* … this is a demo for ECN-Bits */ #endif #ifdef __APPLE__