Skip to content

Commit

Permalink
refactor: remove redundant _GNU_SOURCE definitions from multiple sour…
Browse files Browse the repository at this point in the history
…ce files

Signed-off-by: Dengfeng Liu <[email protected]>
  • Loading branch information
liudf0716 committed Nov 18, 2024
1 parent f816d28 commit f641247
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions src/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Copyright (c) 2023 Dengfeng Liu <[email protected]>
*/

#define _GNU_SOURCE

#include "common.h"
#include "http.h"
#include "safe.h"
Expand Down
2 changes: 0 additions & 2 deletions src/client_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Copyright (c) 2023 Dengfeng Liu <[email protected]>
*/

#define _GNU_SOURCE

#include "common.h"
#include "safe.h"
#include "debug.h"
Expand Down
2 changes: 0 additions & 2 deletions src/firewall.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Copyright (c) 2023 Dengfeng Liu <[email protected]>
*/

#define _GNU_SOURCE

#include "common.h"
#include "safe.h"
#include "util.h"
Expand Down
2 changes: 0 additions & 2 deletions src/fw_iptables.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Copyright (c) 2023 Dengfeng Liu <[email protected]>
*/

#define _GNU_SOURCE

#include <arpa/inet.h>
#include <libiptc/libiptc.h>
#include <xtables.h>
Expand Down
2 changes: 0 additions & 2 deletions src/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Copyright (c) 2023 Dengfeng Liu <[email protected]>
*/

/* Note that libcs other than GLIBC also use this macro to enable vasprintf */
#define _GNU_SOURCE

#include <sys/types.h>
#include <sys/stat.h>
Expand Down
2 changes: 0 additions & 2 deletions src/ping_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Copyright (c) 2023 Dengfeng Liu <[email protected]>
*/

#define _GNU_SOURCE

#include "common.h"
#include "conf.h"
#include "safe.h"
Expand Down
2 changes: 0 additions & 2 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Copyright (c) 2023 Dengfeng Liu <[email protected]>
*/

#define _GNU_SOURCE

#include <netinet/icmp6.h>

#include "util.h"
Expand Down
2 changes: 0 additions & 2 deletions src/wdctl_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Copyright (c) 2023 Dengfeng Liu <[email protected]>
*/

#define _GNU_SOURCE

#include "common.h"
#include "util.h"
#include "wd_util.h"
Expand Down

0 comments on commit f641247

Please sign in to comment.