aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenlei Huang <zlei@FreeBSD.org>2025-10-13 10:12:35 +0000
committerZhenlei Huang <zlei@FreeBSD.org>2025-10-13 10:12:35 +0000
commit296db8c72dca1c17d9a4ce94cc8881e48df8187b (patch)
tree9c170989e6d94765723ce72735ee890d7f7b8be4
parent12ac59a0d1f6ae2065e8e2cb36c53c00771bfc74 (diff)
sys/sysent.h: Remove an unneeded type cast
The function exec_sysvec_init() already has the right prototype. While here, remove an extra semicolon from the macro INIT_SYSENTVEC. MFC after: 1 week
-rw-r--r--sys/sys/sysent.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sys/sysent.h b/sys/sys/sysent.h
index 1714fa5a7416..6de391dcc03e 100644
--- a/sys/sys/sysent.h
+++ b/sys/sys/sysent.h
@@ -343,8 +343,7 @@ void exec_free_abi_mappings(struct proc *p);
void exec_onexec_old(struct thread *td);
#define INIT_SYSENTVEC(name, sv) \
- SYSINIT(name, SI_SUB_EXEC, SI_ORDER_ANY, \
- (sysinit_cfunc_t)exec_sysvec_init, sv);
+ SYSINIT(name, SI_SUB_EXEC, SI_ORDER_ANY, exec_sysvec_init, sv)
#endif /* _KERNEL */