Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jun 2021 10:31:05 GMT
From:      =?utf-8?Q?Fernando Apestegu=C3=ADa=?= <fernape@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: dc318a4ffabc - main - Fix syscall kld example
Message-ID:  <202106091031.159AV5fb092741@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org>
AuthorDate: 2021-05-27 12:09:39 +0000
Commit:     Fernando ApesteguĂ­a <fernape@FreeBSD.org>
CommitDate: 2021-06-09 10:24:26 +0000

    Fix syscall kld example
    
    PR:     255936
    Reported by:    splitface@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
 };
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106091031.159AV5fb092741>