Author: hselasky
Date: Mon Aug 10 10:40:19 2020
New Revision: 364072
URL: https://svnweb.freebsd.org/changeset/base/364072

Log:
  Use proper prototype for SYSINIT() functions.
  Mark the unused argument using the __unused macro.
  
  Discussed with:               kib@
  MFC after:            1 week
  Sponsored by:         Mellanox Technologies

Modified:
  head/sys/netinet/in_mcast.c
  head/sys/netinet6/in6_mcast.c

Modified: head/sys/netinet/in_mcast.c
==============================================================================
--- head/sys/netinet/in_mcast.c Mon Aug 10 10:40:14 2020        (r364071)
+++ head/sys/netinet/in_mcast.c Mon Aug 10 10:40:19 2020        (r364072)
@@ -229,7 +229,7 @@ static struct in_multi_head inm_free_list = SLIST_HEAD
 static void inm_release_task(void *arg __unused, int pending __unused);
 
 static void
-inm_init(void)
+inm_init(void *arg __unused)
 {
        TASK_INIT(&free_task, 0, inm_release_task, NULL);
 }

Modified: head/sys/netinet6/in6_mcast.c
==============================================================================
--- head/sys/netinet6/in6_mcast.c       Mon Aug 10 10:40:14 2020        
(r364071)
+++ head/sys/netinet6/in6_mcast.c       Mon Aug 10 10:40:19 2020        
(r364072)
@@ -521,7 +521,7 @@ static struct in6_multi_head in6m_free_list = SLIST_HE
 static void in6m_release_task(void *arg __unused, int pending __unused);
 
 static void
-in6m_init(void)
+in6m_init(void *arg __unused)
 {
        TASK_INIT(&in6m_free_task, 0, in6m_release_task, NULL);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to