diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2004-12-06 10:53:40 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2004-12-06 10:53:40 +0000 |
commit | cb37acb890135405b2b7db8673b37b065143203d (patch) | |
tree | b53c47a24af634e0100aa76313aa2ad95f64890a | |
parent | 96a90ac8d7dbefb993ca4f61674c00815248dd5b (diff) | |
download | FreeBSD-src-cb37acb890135405b2b7db8673b37b065143203d.zip FreeBSD-src-cb37acb890135405b2b7db8673b37b065143203d.tar.gz |
Use 'const char *' for a few prototypes.
Reviewed by: ru
-rw-r--r-- | sys/kern/subr_eventhandler.c | 8 | ||||
-rw-r--r-- | sys/sys/eventhandler.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/subr_eventhandler.c b/sys/kern/subr_eventhandler.c index b1c6f65..599bef4 100644 --- a/sys/kern/subr_eventhandler.c +++ b/sys/kern/subr_eventhandler.c @@ -49,7 +49,7 @@ struct eventhandler_entry_generic void (* func)(void); }; -static struct eventhandler_list *_eventhandler_find_list(char *name); +static struct eventhandler_list *_eventhandler_find_list(const char *name); /* * Initialize the eventhandler mutex and list. @@ -69,7 +69,7 @@ SYSINIT(eventhandlers, SI_SUB_EVENTHANDLER, SI_ORDER_FIRST, eventhandler_init, * if all priorities are identical. */ 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_list *new_list; @@ -186,7 +186,7 @@ eventhandler_deregister(struct eventhandler_list *list, eventhandler_tag tag) * Internal version for use when eventhandler list is already locked. */ static struct eventhandler_list * -_eventhandler_find_list(char *name) +_eventhandler_find_list(const char *name) { struct eventhandler_list *list; @@ -202,7 +202,7 @@ _eventhandler_find_list(char *name) * Lookup a "slow" list by name. Returns with the list locked. */ struct eventhandler_list * -eventhandler_find_list(char *name) +eventhandler_find_list(const char *name) { struct eventhandler_list *list; diff --git a/sys/sys/eventhandler.h b/sys/sys/eventhandler.h index c734c19..83ffc14 100644 --- a/sys/sys/eventhandler.h +++ b/sys/sys/eventhandler.h @@ -125,10 +125,10 @@ do { \ eventhandler_tag eventhandler_register(struct eventhandler_list *list, - char *name, void *func, void *arg, int priority); + const char *name, void *func, void *arg, int priority); void eventhandler_deregister(struct eventhandler_list *list, eventhandler_tag tag); -struct eventhandler_list *eventhandler_find_list(char *name); +struct eventhandler_list *eventhandler_find_list(const char *name); void eventhandler_prune_list(struct eventhandler_list *list); /* |