From dea04441fb51f74dc25f6ab4bd756b4159d961b6 Mon Sep 17 00:00:00 2001 From: Paul Jakma Date: Tue, 26 Feb 2008 09:16:09 +0000 Subject: [c++] remove/rename some names in headers that clash with C++ reserved words 2008-01-30 Peter Szilagyi * lib/stream.h: Remove named 'new' parameter in prototype for c++ header compatibility. * ospfd/ospf_opaque.h: ditto * ospfd/ospfd.h: Renamed struct export to _export for c++ header compatibility. * ospf6d/ospf6_area.h: ditto --- ospfd/ospf_opaque.h | 2 +- ospfd/ospfd.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ospfd') diff --git a/ospfd/ospf_opaque.h b/ospfd/ospf_opaque.h index fc8d6ff6..f49fe460 100644 --- a/ospfd/ospf_opaque.h +++ b/ospfd/ospf_opaque.h @@ -141,7 +141,7 @@ extern void ospf_opaque_lsa_dump (struct stream *s, u_int16_t length); extern void ospf_opaque_lsa_originate_schedule (struct ospf_interface *oi, int *init_delay); -extern struct ospf_lsa *ospf_opaque_lsa_install (struct ospf_lsa *new, +extern struct ospf_lsa *ospf_opaque_lsa_install (struct ospf_lsa *, int rt_recalc); extern void ospf_opaque_lsa_refresh (struct ospf_lsa *lsa); diff --git a/ospfd/ospfd.h b/ospfd/ospfd.h index 7a0ffcef..b6187111 100644 --- a/ospfd/ospfd.h +++ b/ospfd/ospfd.h @@ -397,9 +397,9 @@ struct ospf_area { char *name; struct access_list *list; - } export; -#define EXPORT_NAME(A) (A)->export.name -#define EXPORT_LIST(A) (A)->export.list + } _export; +#define EXPORT_NAME(A) (A)->_export.name +#define EXPORT_LIST(A) (A)->_export.list /* Area acceptance list. */ struct -- cgit v1.2.1