Remove unneeded redefinitions of IPPROTO_* macros
IPPROTO_* macros are defined by <netinet/in.h>, no need to redefine them. * net.c (IPPROTO_EGP, IPPROTO_PUP, IPPROTO_IDP, IPPROTO_IGMP, IPPROTO_RAW, IPPROTO_MAX): Remove. Reported by John Spencer.
This commit is contained in:
parent
437ae19fc8
commit
840a253bac
8
net.c
8
net.c
@ -94,14 +94,6 @@
|
|||||||
# define PF_UNSPEC AF_UNSPEC
|
# define PF_UNSPEC AF_UNSPEC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Under Linux these are enums so we can't test for them with ifdef. */
|
|
||||||
#define IPPROTO_EGP IPPROTO_EGP
|
|
||||||
#define IPPROTO_PUP IPPROTO_PUP
|
|
||||||
#define IPPROTO_IDP IPPROTO_IDP
|
|
||||||
#define IPPROTO_IGMP IPPROTO_IGMP
|
|
||||||
#define IPPROTO_RAW IPPROTO_RAW
|
|
||||||
#define IPPROTO_MAX IPPROTO_MAX
|
|
||||||
|
|
||||||
static const struct xlat domains[] = {
|
static const struct xlat domains[] = {
|
||||||
#ifdef PF_UNSPEC
|
#ifdef PF_UNSPEC
|
||||||
{ PF_UNSPEC, "PF_UNSPEC" },
|
{ PF_UNSPEC, "PF_UNSPEC" },
|
||||||
|
Loading…
Reference in New Issue
Block a user