summaryrefslogtreecommitdiff
path: root/freebsd/sys/kern/subr_kobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/kern/subr_kobj.c')
-rw-r--r--freebsd/sys/kern/subr_kobj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/freebsd/sys/kern/subr_kobj.c b/freebsd/sys/kern/subr_kobj.c
index 5666f274..91a25cf4 100644
--- a/freebsd/sys/kern/subr_kobj.c
+++ b/freebsd/sys/kern/subr_kobj.c
@@ -85,7 +85,7 @@ SYSINIT(kobj, SI_SUB_LOCK, SI_ORDER_ANY, kobj_init_mutex, NULL);
* desc pointer is NULL, it is guaranteed never to match any read
* descriptors.
*/
-static struct kobj_method null_method = {
+static const struct kobj_method null_method = {
0, 0,
};
@@ -226,7 +226,7 @@ kobj_lookup_method(kobj_class_t cls,
ce = kobj_lookup_method_mi(cls, desc);
if (!ce)
- ce = desc->deflt;
+ ce = &desc->deflt;
*cep = ce;
return ce;
}