[patch] fix compile error in libxt_condition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Jan,

attached is a small patch to fix the compilation
of libxt_condition in xtables_addons using gcc 4.3.2.

Cheers,
Thomas

Fix compile error in libxt_condition

libxt_condition.c:95: error: static declaration of 'libxt_condition_init' follows non-static declaration
../include/xtables/internal.h:64: error: previous declaration of 'libxt_condition_init' was here  

Signed-off-by: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>

--- extensions.old/xt_condition.c/libxt_condition.c	Thu Oct 23 12:22:38 2008
+++ extensions/xt_condition.c/libxt_condition.c	Thu Oct 23 12:24:27 2008
@@ -92,7 +92,7 @@
 	.extra_opts 	= condition_opts,
 };
 
-static void _init(void)
+void _init(void)
 {
 	xtables_register_match(&condition_mt_reg);
 }

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux