[Chilli] [PATCH] Fix: Compilation fails when HAVE_NETFILTER_QUEUE is not defined

Masashi Honma honma at ictec.co.jp
Fri Feb 26 07:28:23 UTC 2010


(2010/02/26 16:21), Masashi Honma wrote:
> Hello.
>
> The latest svn tree can't be compiled when HAVE_NETFILTER_QUEUE is
> not defined. This patch solves this issue.
>
>
> Index: net.c
> ===================================================================
> --- net.c	(revision 292)
> +++ net.c	(working copy)
> @@ -669,7 +669,7 @@
>
>     return 0;
>   #else
> -  log_error(0, "Not implemeneted; build with --with-nfqueue");
> +  log_err(0, "Not implemeneted; build with --with-nfqueue");
>   #endif
>   }

Oops. I missed to insert return. Discard previous patch.

Index: net.c
===================================================================
--- net.c	(revision 292)
+++ net.c	(working copy)
@@ -669,7 +669,8 @@
  
    return 0;
  #else
-  log_error(0, "Not implemeneted; build with --with-nfqueue");
+  log_err(0, "Not implemeneted; build with --with-nfqueue");
+  return -1;
  #endif
  }

Regards,
Masashi Honma.


More information about the Chilli mailing list