svn commit: r257219 - head/sys/net

Gleb Smirnoff glebius at FreeBSD.org
Sun Oct 27 17:14:33 UTC 2013


Author: glebius
Date: Sun Oct 27 17:14:33 2013
New Revision: 257219
URL: http://svnweb.freebsd.org/changeset/base/257219

Log:
  Almost all if_clone consumers do not care about if_clone_event.
  Do not force them to include sys/eventhandler.h. Those who
  utilize EVENTHANDLER(9), will see the declaration.

Modified:
  head/sys/net/if_clone.h

Modified: head/sys/net/if_clone.h
==============================================================================
--- head/sys/net/if_clone.h	Sun Oct 27 17:12:31 2013	(r257218)
+++ head/sys/net/if_clone.h	Sun Oct 27 17:14:33 2013	(r257219)
@@ -58,9 +58,11 @@ int	ifc_name2unit(const char *name, int 
 int	ifc_alloc_unit(struct if_clone *, int *);
 void	ifc_free_unit(struct if_clone *, int);
 
+#ifdef SYS_EVENTHANDLER_H
 /* Interface clone event. */
 typedef void (*if_clone_event_handler_t)(void *, struct if_clone *);
 EVENTHANDLER_DECLARE(if_clone_event, if_clone_event_handler_t);
+#endif
 
 /* The below interfaces used only by net/if.c. */
 void	if_clone_init(void);


More information about the svn-src-head mailing list