From f64124781ce71606d613b9d5e1d5616fe3d3a877 Mon Sep 17 00:00:00 2001 From: Dengfeng Liu Date: Mon, 18 Nov 2024 20:15:28 +0800 Subject: [PATCH] refactor: remove redundant _GNU_SOURCE definitions from multiple source files Signed-off-by: Dengfeng Liu --- src/auth.c | 2 -- src/client_list.c | 2 -- src/firewall.c | 2 -- src/fw_iptables.c | 2 -- src/http.c | 2 -- src/ping_thread.c | 2 -- src/util.c | 2 -- src/wdctl_thread.c | 2 -- 8 files changed, 16 deletions(-) diff --git a/src/auth.c b/src/auth.c index 0bb79f65..71de43cd 100644 --- a/src/auth.c +++ b/src/auth.c @@ -4,8 +4,6 @@ * Copyright (c) 2023 Dengfeng Liu */ -#define _GNU_SOURCE - #include "common.h" #include "http.h" #include "safe.h" diff --git a/src/client_list.c b/src/client_list.c index d542ebb9..6a36d4f2 100644 --- a/src/client_list.c +++ b/src/client_list.c @@ -4,8 +4,6 @@ * Copyright (c) 2023 Dengfeng Liu */ -#define _GNU_SOURCE - #include "common.h" #include "safe.h" #include "debug.h" diff --git a/src/firewall.c b/src/firewall.c index b852c805..d6361bb4 100644 --- a/src/firewall.c +++ b/src/firewall.c @@ -4,8 +4,6 @@ * Copyright (c) 2023 Dengfeng Liu */ -#define _GNU_SOURCE - #include "common.h" #include "safe.h" #include "util.h" diff --git a/src/fw_iptables.c b/src/fw_iptables.c index f005eaff..34d1f31d 100755 --- a/src/fw_iptables.c +++ b/src/fw_iptables.c @@ -4,8 +4,6 @@ * Copyright (c) 2023 Dengfeng Liu */ -#define _GNU_SOURCE - #include #include #include diff --git a/src/http.c b/src/http.c index 611e3349..511a633d 100644 --- a/src/http.c +++ b/src/http.c @@ -4,8 +4,6 @@ * Copyright (c) 2023 Dengfeng Liu */ -/* Note that libcs other than GLIBC also use this macro to enable vasprintf */ -#define _GNU_SOURCE #include #include diff --git a/src/ping_thread.c b/src/ping_thread.c index 4f86d358..4472a759 100644 --- a/src/ping_thread.c +++ b/src/ping_thread.c @@ -4,8 +4,6 @@ * Copyright (c) 2023 Dengfeng Liu */ -#define _GNU_SOURCE - #include "common.h" #include "conf.h" #include "safe.h" diff --git a/src/util.c b/src/util.c index f558b86c..1dc8c871 100644 --- a/src/util.c +++ b/src/util.c @@ -4,8 +4,6 @@ * Copyright (c) 2023 Dengfeng Liu */ -#define _GNU_SOURCE - #include #include "util.h" diff --git a/src/wdctl_thread.c b/src/wdctl_thread.c index 5905a6d9..822c3cc0 100644 --- a/src/wdctl_thread.c +++ b/src/wdctl_thread.c @@ -4,8 +4,6 @@ * Copyright (c) 2023 Dengfeng Liu */ -#define _GNU_SOURCE - #include "common.h" #include "util.h" #include "wd_util.h"