summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2013-11-12 16:13:43 +0000
committerDmitry V. Levin <ldv@altlinux.org>2013-11-12 16:13:43 +0000
commit840a253bacdd107f90628dd3d5371d03fdca48ab (patch)
treea23279c5f64c33b5cde77c675f79083e657d4555
parent437ae19fc86ae9977e6de25518782f4f8291b20f (diff)
downloadstrace-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.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/net.c b/net.c
index 652b9af..ea785b3 100644
--- a/net.c
+++ b/net.c
@@ -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" },