git: 836e4b371b6e - main - kern/sysv_ipc.c: use ANSI C function definition
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Feb 2023 14:03:12 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=836e4b371b6eacc8a7e14cdf30fbced59c343455 commit 836e4b371b6eacc8a7e14cdf30fbced59c343455 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2023-02-21 14:00:22 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-02-21 14:02:46 +0000 kern/sysv_ipc.c: use ANSI C function definition Also remove pointless return's. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/kern/sysv_ipc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sys/kern/sysv_ipc.c b/sys/kern/sysv_ipc.c index 4a7d79ad23b3..071253a9f59d 100644 --- a/sys/kern/sysv_ipc.c +++ b/sys/kern/sysv_ipc.c @@ -56,23 +56,18 @@ void (*shmexit_hook)(struct vmspace *) = NULL; /* called from kern_fork.c */ void -shmfork(p1, p2) - struct proc *p1, *p2; +shmfork(struct proc *p1, struct proc *p2) { - if (shmfork_hook != NULL) shmfork_hook(p1, p2); - return; } /* called from kern_exit.c */ void shmexit(struct vmspace *vm) { - if (shmexit_hook != NULL) shmexit_hook(vm); - return; } #endif