hipl-core team mailing list archive
-
hipl-core team
-
Mailing list archive
-
Message #00134
[Branch ~hipl-core/hipl/trunk] Rev 4922: fixed ./configure --disable-firewall failing to build
------------------------------------------------------------
revno: 4922
committer: Rene Hummen <rene.hummen@xxxxxxxxxxxxxxxxx>
branch nick: trunk
timestamp: Thu 2010-09-02 20:20:43 +0200
message:
fixed ./configure --disable-firewall failing to build
unused parameter due to conditional compilation.
modified:
hipd/hipd.c
lib/core/common.h
--
lp:hipl
https://code.launchpad.net/~hipl-core/hipl/trunk
Your team HIPL core team is subscribed to branch lp:hipl.
To unsubscribe from this branch go to https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'hipd/hipd.c'
--- hipd/hipd.c 2010-08-25 09:06:43 +0000
+++ hipd/hipd.c 2010-09-02 18:20:43 +0000
@@ -45,6 +45,7 @@
#include <sys/un.h>
#include "lib/core/builder.h"
+#include "lib/core/common.h"
#include "lib/core/conf.h"
#include "lib/core/debug.h"
#include "lib/core/filemanip.h"
@@ -188,7 +189,7 @@
* @param msg the message to send
* @return zero on success or negative on error
*/
-int hip_sendto_firewall(const struct hip_common *msg)
+int hip_sendto_firewall(HIPFW const struct hip_common *msg)
{
#ifdef CONFIG_HIP_FIREWALL
int n = 0;
=== modified file 'lib/core/common.h'
--- lib/core/common.h 2010-07-14 16:01:50 +0000
+++ lib/core/common.h 2010-09-02 18:20:43 +0000
@@ -52,6 +52,13 @@
# define RVS UNUSED
#endif
+/** marking for firewall function parameters */
+#ifdef CONFIG_HIP_FIREWALL
+# define HIPFW
+#else
+# define HIPFW UNUSED
+#endif
+
/** marking for OPPORTUNISTIC-specific function parameters */
#ifdef CONFIG_HIP_OPPORTUNISTIC
# define OPP
Follow ups