From c1fe0ed0ba3d599f5b593ad863b69f73e7fd4625 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 7 Mar 2014 14:51:33 +0000 Subject: add missing ifdefs in header files --- src/include/gnunet_transport_plugin.h | 2 ++ src/peerinfo/peerinfo.h | 7 +++++++ src/transport/plugin_transport_http.h | 4 ++++ src/transport/plugin_transport_udp.h | 5 +++++ 4 files changed, 18 insertions(+) diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h index f1092e949..675980549 100644 --- a/src/include/gnunet_transport_plugin.h +++ b/src/include/gnunet_transport_plugin.h @@ -654,4 +654,6 @@ struct GNUNET_TRANSPORT_PluginFunctions }; +/*#ifndef PLUGIN_TRANSPORT_H*/ #endif +/* end of gnunet_transport_plugin.h */ diff --git a/src/peerinfo/peerinfo.h b/src/peerinfo/peerinfo.h index bd981c2d4..c76f9bba3 100644 --- a/src/peerinfo/peerinfo.h +++ b/src/peerinfo/peerinfo.h @@ -23,11 +23,16 @@ * @brief common internal definitions for peerinfo service * @author Christian Grothoff */ + +#ifndef PEERINFO_H +#define PEERINFO_H + #include "gnunet_crypto_lib.h" #include "gnunet_time_lib.h" #include "gnunet_peerinfo_service.h" + GNUNET_NETWORK_STRUCT_BEGIN /** @@ -120,4 +125,6 @@ struct InfoMessage }; GNUNET_NETWORK_STRUCT_END +/*#ifndef PEERINFO_H*/ +#endif /* end of peerinfo.h */ diff --git a/src/transport/plugin_transport_http.h b/src/transport/plugin_transport_http.h index 1ac2f9859..2fb827be3 100644 --- a/src/transport/plugin_transport_http.h +++ b/src/transport/plugin_transport_http.h @@ -23,6 +23,8 @@ * @brief http transport service plugin * @author Matthias Wachs */ +#ifndef PLUGIN_TRANSPORT_HTTP_H +#define PLUGIN_TRANSPORT_HTTP_H #include "platform.h" #include "gnunet_common.h" @@ -579,4 +581,6 @@ void notify_session_end (void *cls, const struct GNUNET_PeerIdentity *peer, struct Session *s); +/*#ifndef PLUGIN_TRANSPORT_HTTP_H*/ +#endif /* end of plugin_transport_http.h */ diff --git a/src/transport/plugin_transport_udp.h b/src/transport/plugin_transport_udp.h index 1994fa5e2..62352f9fc 100644 --- a/src/transport/plugin_transport_udp.h +++ b/src/transport/plugin_transport_udp.h @@ -25,6 +25,9 @@ * @author Nathan Evans * @author Matthias Wachs */ +#ifndef PLUGIN_TRANSPORT_UDP_H +#define PLUGIN_TRANSPORT_UDP_H + #include "platform.h" #include "gnunet_hello_lib.h" #include "gnunet_util_lib.h" @@ -301,4 +304,6 @@ setup_broadcast (struct Plugin *plugin, void stop_broadcast (struct Plugin *plugin); +/*#ifndef PLUGIN_TRANSPORT_UDP_H*/ +#endif /* end of plugin_transport_udp.h */ -- cgit v1.2.3