git: dc318a4ffabc - main - Fix syscall kld example

Fernando Apesteguía= fernape at FreeBSD.org
Wed Jun 9 10:31:06 UTC 2021


The branch main has been updated by fernape (doc, ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=dc318a4ffabcbfa23bb56a33403aad36e6de30af

commit dc318a4ffabcbfa23bb56a33403aad36e6de30af
Author:     Fernando Apesteguía <fernape at FreeBSD.org>
AuthorDate: 2021-05-27 12:09:39 +0000
Commit:     Fernando Apesteguía <fernape at FreeBSD.org>
CommitDate: 2021-06-09 10:24:26 +0000

    Fix syscall kld example
    
    PR:     255936
    Reported by:    splitface at mailfence.com
    Approved by:    gbe (mentor), imp@, jilles@
    Differential Revision:  https://reviews.freebsd.org/D30498
---
 share/examples/kld/syscall/module/syscall.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/examples/kld/syscall/module/syscall.c b/share/examples/kld/syscall/module/syscall.c
index 701e2492884c..1ee533005b85 100644
--- a/share/examples/kld/syscall/module/syscall.c
+++ b/share/examples/kld/syscall/module/syscall.c
@@ -51,8 +51,8 @@ hello(struct thread *td, void *arg)
  * The `sysent' for the new syscall
  */
 static struct sysent hello_sysent = {
-	0,			/* sy_narg */
-	hello			/* sy_call */
+	.sy_narg = 0,
+	.sy_call = hello
 };
 
 /*


More information about the dev-commits-src-all mailing list