Re: [PATCH 06/24] Fix all remaining warnings (missing declarations, missing prototypes)

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

 



Jan Engelhardt wrote:
--- a/extensions/libip6t_LOG.c
+++ b/extensions/libip6t_LOG.c
@@ -269,6 +269,7 @@ static struct ip6tables_target log_target6 = {
     .extra_opts    = LOG_opts,
 };
+void _init(void);
 void _init(void)
 {
 	register_target6(&log_target6);

I don't like this very much. A global prototype or simply using
__attribute__ ((constructor)) and __attribute__ ((destructor))
would be preferred.

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

  Powered by Linux