Skip to content

Commit 2367e38

Browse files
Remove extra replacement-lists in #define (#35)
1 parent 359bb9b commit 2367e38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bwping.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,25 @@
5353
#include <netdb.h>
5454

5555
#if defined( ENABLE_MMSG ) && defined( HAVE_SENDMMSG )
56-
#define BWPING_USE_SENDMMSG 1
56+
#define BWPING_USE_SENDMMSG
5757
#else
5858
#undef BWPING_USE_SENDMMSG
5959
#endif
6060

6161
#if defined( ENABLE_MMSG ) && defined( HAVE_RECVMMSG )
62-
#define BWPING_USE_RECVMMSG 1
62+
#define BWPING_USE_RECVMMSG
6363
#else
6464
#undef BWPING_USE_RECVMMSG
6565
#endif
6666

6767
#if defined( HAVE_NETINET_ICMP6_H ) && defined( ICMP6_FILTER )
68-
#define BWPING_USE_ICMP6_FILTER 1
68+
#define BWPING_USE_ICMP6_FILTER
6969
#else
7070
#undef BWPING_USE_ICMP6_FILTER
7171
#endif
7272

7373
#if defined( ENABLE_BPF ) && defined( HAVE_LINUX_FILTER_H ) && defined( SO_ATTACH_FILTER )
74-
#define BWPING_USE_BPF 1
74+
#define BWPING_USE_BPF
7575
#else
7676
#undef BWPING_USE_BPF
7777
#endif

0 commit comments

Comments
 (0)