kernel: Make eventhandler_{register,find_list}()'s name argument const.
authorSascha Wildner <saw@online.de>
Fri, 17 Jan 2014 23:05:52 +0000 (00:05 +0100)
committerSascha Wildner <saw@online.de>
Fri, 17 Jan 2014 23:05:52 +0000 (00:05 +0100)
sys/kern/subr_eventhandler.c
sys/sys/eventhandler.h

index ac4d344..2edc3e3 100644 (file)
@@ -26,7 +26,6 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/kern/subr_eventhandler.c,v 1.3 1999/11/16 16:28:57 phk Exp $
- * $DragonFly: src/sys/kern/subr_eventhandler.c,v 1.5 2006/09/05 03:48:12 dillon Exp $
  */
 
 #include <sys/param.h>
@@ -56,7 +55,7 @@ struct eventhandler_entry_generic
  * MPSAFE
  */
 eventhandler_tag
-eventhandler_register(struct eventhandler_list *list, char *name, 
+eventhandler_register(struct eventhandler_list *list, const char *name, 
                      void *func, void *arg, int priority)
 {
     struct eventhandler_entry_generic  *eg;
@@ -142,7 +141,7 @@ eventhandler_deregister(struct eventhandler_list *list, eventhandler_tag tag)
  * Locate the requested list
  */
 struct eventhandler_list *
-eventhandler_find_list(char *name)
+eventhandler_find_list(const char *name)
 {
     struct eventhandler_list   *list;
 
index 1f80cc6..d03e88c 100644 (file)
@@ -139,13 +139,13 @@ do {                                                      \
 
 #ifdef _KERNEL
 extern eventhandler_tag        eventhandler_register(struct eventhandler_list *list, 
-                                             char *name,
+                                             const char *name,
                                              void *func, 
                                              void *arg, 
                                              int priority);
 extern void            eventhandler_deregister(struct eventhandler_list *list,
                                                eventhandler_tag tag);
-extern struct eventhandler_list        *eventhandler_find_list(char *name);
+extern struct eventhandler_list        *eventhandler_find_list(const char *name);
 #endif /* _KERNEL */
 
 /*