[quagga-dev 7052] [PATCH 2/2] bgp: compiler warning fix

Stephen Hemminger shemminger at vyatta.com
Fri Aug 7 05:07:23 BST 2009


Gcc complains the function prototype is not correct because
the function argument is using old K&R style.

--- a/bgpd/bgp_filter.h	2009-08-06 20:51:44.319706594 -0700
+++ b/bgpd/bgp_filter.h	2009-08-06 20:51:54.883386799 -0700
@@ -33,7 +33,7 @@ extern void bgp_filter_reset (void);
 extern enum as_filter_type as_list_apply (struct as_list *, void *);
 
 extern struct as_list *as_list_lookup (const char *);
-extern void as_list_add_hook (void (*func) ());
-extern void as_list_delete_hook (void (*func) ());
+extern void as_list_add_hook (void (*func) (void));
+extern void as_list_delete_hook (void (*func) (void));
 
 #endif /* _QUAGGA_BGP_FILTER_H */



More information about the Quagga-dev mailing list