diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2013-11-12 16:13:43 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2013-11-12 16:13:43 +0000 |
commit | 840a253bacdd107f90628dd3d5371d03fdca48ab (patch) | |
tree | a23279c5f64c33b5cde77c675f79083e657d4555 | |
parent | 437ae19fc86ae9977e6de25518782f4f8291b20f (diff) | |
download | strace-840a253bacdd107f90628dd3d5371d03fdca48ab.tar.gz strace-840a253bacdd107f90628dd3d5371d03fdca48ab.tar.bz2 strace-840a253bacdd107f90628dd3d5371d03fdca48ab.tar.xz |
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.
-rw-r--r-- | net.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -94,14 +94,6 @@ # define PF_UNSPEC AF_UNSPEC #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[] = { #ifdef PF_UNSPEC { PF_UNSPEC, "PF_UNSPEC" }, |